Changeset: 5f66c77a1123 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5f66c77a1123
Modified Files:
gdk/gdk_imprints.c
gdk/gdk_private.h
Branch: Oct2014
Log Message:
Add head/tail marker to imprints heaps; select farm for imprints heap.
diffs (29 lines):
diff --git a/gdk/gdk_imprints.c b/gdk/gdk_imprints.c
--- a/gdk/gdk_imprints.c
+++ b/gdk/gdk_imprints.c
@@ -652,8 +652,11 @@ BATimprints(BAT *b)
"BATimprints");
return NULL;
}
- sprintf(imprints->imprints->filename, "%s.imprints", nme);
+ sprintf(imprints->imprints->filename, "%s.%cimprints", nme,
+ b->batCacheid > 0 ? 't' : 'h');
pages = (((size_t) BATcount(b) * b->T->width) + IMPS_PAGE - 1)
/ IMPS_PAGE;
+ imprints->imprints->farmid = BBPselectfarm(TRANSIENT, b->ttype,
+ imprintsheap);
/* The heap we create here consists of three parts:
* bins, max 64 entries with bin boundaries;
* imps;
diff --git a/gdk/gdk_private.h b/gdk/gdk_private.h
--- a/gdk/gdk_private.h
+++ b/gdk/gdk_private.h
@@ -28,7 +28,8 @@
enum heaptype {
offheap,
varheap,
- hashheap
+ hashheap,
+ imprintsheap
};
/*
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list