Changeset: fa3b28add490 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fa3b28add490 Modified Files: gdk/gdk_search.c Branch: default Log Message:
Set size and free fields before loading heap. This enables the actual reuse of hash heaps. diffs (12 lines): diff --git a/gdk/gdk_search.c b/gdk/gdk_search.c --- a/gdk/gdk_search.c +++ b/gdk/gdk_search.c @@ -243,7 +243,7 @@ BATcheckhash(BAT *b) hdata[0] == (((size_t) 1 << 24) | HASH_VERSION) && hdata[4] == (size_t) BATcount(b) && fstat(fd, &st) == 0 && - st.st_size >= (off_t) ((hdata[1] + hdata[2]) * hdata[3] + HASH_HEADER_SIZE * SIZEOF_SIZE_T) && + st.st_size >= (off_t) (hp->size = hp->free = (hdata[1] + hdata[2]) * hdata[3] + HASH_HEADER_SIZE * SIZEOF_SIZE_T) && HEAPload(hp, nme, ext, 0) >= 0) { h->lim = (BUN) hdata[1]; h->type = ATOMtype(b->ttype); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list