Changeset: 42f76f06ff2e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/42f76f06ff2e
Modified Files:
gdk/gdk_hash.c
Branch: Dec2025
Log Message:
Don't automatically discard saved hashes when they are the full width.
The test was too stringent.
diffs (13 lines):
diff --git a/gdk/gdk_hash.c b/gdk/gdk_hash.c
--- a/gdk/gdk_hash.c
+++ b/gdk/gdk_hash.c
@@ -504,8 +504,7 @@ BATcheckhash(BAT *b)
h->nunique = hdata[5];
h->nheads = hdata[6];
h->type =
ATOMtype(b->ttype);
- if (h->width <
SIZEOF_BUN &&
- ((BUN) 1 << (8 *
h->width)) - 1 > h->nbucket) {
+ if ((~(BUN) 0 >>
((SIZEOF_BUN - h->width) * 8)) > h->nbucket) {
close(fd);
h->Link =
h->heaplink.base;
h->Bckt =
h->heapbckt.base + HASH_HEADER_SIZE * SIZEOF_SIZE_T;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]