Changeset: c3de4ee18f82 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c3de4ee18f82
Modified Files:
gdk/gdk_project.c
gdk/gdk_string.c
sql/backends/monet5/sql.c
Branch: ustr
Log Message:
Made some ustr improvements.
diffs (36 lines):
diff --git a/gdk/gdk_project.c b/gdk/gdk_project.c
--- a/gdk/gdk_project.c
+++ b/gdk/gdk_project.c
@@ -560,6 +560,9 @@ BATproject2(BAT *restrict l, BAT *restri
bn->tshift = r1i.shift;
bn->tascii = r1i.ascii;
bn->tvkey = r1i.vkey;
+ bn->ustr = r1i.ustr;
+ if (bn->ustr)
+ BBPfix(bn->ustr);
}
bn->tunique_est =
diff --git a/gdk/gdk_string.c b/gdk/gdk_string.c
--- a/gdk/gdk_string.c
+++ b/gdk/gdk_string.c
@@ -186,6 +186,7 @@ ustrPut(BAT *b, var_t *dst, const char *
/* this function is the ONLY place where ustrbat may be changed
* (inserted into), and we're holding the ustrbat->theaplock, so we are
* totally save looking at the heaps */
+ (void) BATcheckhash(ustrbat); /* load hash table */
MT_rwlock_wrlock(&ustrbat->thashlock);
MT_lock_set(&ustrbat->theaplock);
BUN p = BUN_NONE;
diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -1825,7 +1825,7 @@ mvc_append_wrap(Client cntxt, MalBlkPtr
ins = *(ptr *) ins;
if (isbat) {
b = (BAT*) ins;
- if (VIEWtparent(b) || VIEWvtparent(b)) {
+ if (isVIEW(b)) {
/* note, b == (BAT*)ins */
b = COLcopy(b, b->ttype, true, TRANSIENT);
BBPreclaim(ins);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]