Changeset: 0315869283b7 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0315869283b7
Modified Files:
MonetDB/src/gdk/gdk_bbp.mx
Branch: Oct2010
Log Message:
Avoid using BAT pointer in BBP when decreffing sharecnt.
When a view gets destroyed, it calls GDKunshare on the parent BAT(s).
It the view didn't have any physical references, the parent might not
have any either, so the BAT pointer (BBP_cache()) might not exist.
diffs (12 lines):
diff -r 488979abb635 -r 0315869283b7 MonetDB/src/gdk/gdk_bbp.mx
--- a/MonetDB/src/gdk/gdk_bbp.mx Mon Sep 27 15:12:04 2010 +0200
+++ b/MonetDB/src/gdk/gdk_bbp.mx Mon Sep 27 17:09:05 2010 +0200
@@ -1960,7 +1960,7 @@
gdk_set_lock(GDKswapLock(i), "BBPdecref");
assert(!BBP_cache(i) || BBP_cache(i)->batSharecnt >= releaseShare);
if (releaseShare) {
- --BBP_cache(i)->batSharecnt;
+ --BBP_desc(i)->P.sharecnt;
if (lock)
gdk_unset_lock(GDKswapLock(i), "BBPdecref");
return refs;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list