Changeset: e23206997cea for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e23206997cea
Modified Files:
gdk/gdk_search.c
Branch: Jul2015
Log Message:
Persistent hash use
Also left-over hash files should not be used unless
the identifier has been defined.
diffs (20 lines):
diff --git a/gdk/gdk_search.c b/gdk/gdk_search.c
--- a/gdk/gdk_search.c
+++ b/gdk/gdk_search.c
@@ -237,6 +237,8 @@ BATcheckhash(BAT *b)
t = GDKusec();
MT_lock_set(&GDKhashLock(abs(b->batCacheid)), "BATcheckhash");
t = GDKusec() - t;
+// use or ignore a persistent hash
+#ifdef PERSISTENTHASH
if (b->T->hash == NULL) {
Hash *h;
Heap *hp;
@@ -298,6 +300,7 @@ BATcheckhash(BAT *b)
}
GDKfree(hp);
}
+#endif
ret = b->T->hash != NULL;
MT_lock_unset(&GDKhashLock(abs(b->batCacheid)), "BATcheckhash");
ALGODEBUG if (ret) fprintf(stderr, "#BATcheckhash: already has hash %d,
waited " LLFMT " usec\n", b->batCacheid, t);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list