Changeset: bb62ba8008bb for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bb62ba8008bb
Modified Files:
gdk/gdk_bbp.c
Branch: arrays
Log Message:
assertion to if check
diffs (32 lines):
diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -2399,7 +2399,10 @@ BBPkeepref(bat i)
}
incref(i, TRUE, lock);
- assert(BBP_refs(i));
+ if(!BBP_refs(i)) {
+ GDKerror("BBPkeepref: BAT does not have any references\n");
+ return;
+ }
decref(i, FALSE, FALSE, lock);
}
}
@@ -2454,11 +2457,14 @@ getBBPdescriptor(bat i, int lock)
int load = FALSE;
bat j = abs(i);
BAT *b = NULL;
-
if (!BBPcheck(i, "BBPdescriptor")) {
return NULL;
}
- assert(BBP_refs(i));
+
+ if(!BBP_refs(i)) {
+ GDKerror("getBBPdesriptor: BAT does not have any references\n");
+ return NULL;
+ }
if ((b = BBP_cache(i)) == NULL) {
if (lock)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list