Changeset: 538443a75e82 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=538443a75e82
Modified Files:
gdk/gdk_storage.c
Branch: unlock
Log Message:
Set bat capacity correctly for msk bats.
diffs (18 lines):
diff --git a/gdk/gdk_storage.c b/gdk/gdk_storage.c
--- a/gdk/gdk_storage.c
+++ b/gdk/gdk_storage.c
@@ -839,8 +839,12 @@ BATload_intern(bat bid, bool lock)
assert(0);
return NULL;
}
- assert(b->theap->size >> b->tshift <= BUN_MAX);
- b->batCapacity = (BUN) (b->theap->size >> b->tshift);
+ if (ATOMstorage(b->ttype) == TYPE_msk) {
+ b->batCapacity = (BUN) (b->theap->size * 8);
+ } else {
+ assert(b->theap->size >> b->tshift <= BUN_MAX);
+ b->batCapacity = (BUN) (b->theap->size >> b->tshift);
+ }
} else {
b->theap->base = NULL;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list