Changeset: b56905078b80 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b56905078b80
Modified Files:
gdk/gdk_bat.c
Branch: Jun2023
Log Message:
Move property setting to when we do them all.
diffs (23 lines):
diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -1210,10 +1210,6 @@ BUNappendmulti(BAT *b, const void *value
}
nunique = b->thash ? b->thash->nunique : 0;
}
- MT_lock_set(&b->theaplock);
- b->tminpos = bi.minpos;
- b->tmaxpos = bi.maxpos;
- MT_lock_unset(&b->theaplock);
} else {
for (BUN i = 0; i < count; i++) {
gdk_return rc = tfastins_nocheck(b, p, t);
@@ -1229,6 +1225,8 @@ BUNappendmulti(BAT *b, const void *value
nunique = b->thash ? b->thash->nunique : 0;
}
MT_lock_set(&b->theaplock);
+ b->tminpos = bi.minpos;
+ b->tmaxpos = bi.maxpos;
if (count > BATcount(b) / gdk_unique_estimate_keep_fraction)
b->tunique_est = 0;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]