Changeset: b415b0d6b6f6 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b415b0d6b6f6
Modified Files:
monetdb5/mal/mal_profiler.c
Branch: Jan2014
Log Message:
Always make sure there is a logical reference after TRACEcreate.
If profiling is started after a cleanup, we need to be able to cleanup
again (which decrements the logical reference).
diffs (15 lines):
diff --git a/monetdb5/mal/mal_profiler.c b/monetdb5/mal/mal_profiler.c
--- a/monetdb5/mal/mal_profiler.c
+++ b/monetdb5/mal/mal_profiler.c
@@ -921,8 +921,10 @@ TRACEcreate(str hnme, str tnme, int tt)
snprintf(buf, 128, "trace_%s_%s", hnme, tnme);
b = BATdescriptor(BBPindex(buf));
- if (b)
+ if (b) {
+ BBPincref(b->batCacheid, TRUE);
return b;
+ }
b = BATnew(TYPE_void, tt, 1 << 16);
if (b == NULL)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list