Changeset: a4838b7cb1d6 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a4838b7cb1d6
Modified Files:
        gdk/gdk_storage.c
Branch: Jul2015
Log Message:

Protect against a very special case.
See comment in code.


diffs (18 lines):

diff --git a/gdk/gdk_storage.c b/gdk/gdk_storage.c
--- a/gdk/gdk_storage.c
+++ b/gdk/gdk_storage.c
@@ -728,7 +728,13 @@ BATsave(BAT *bd)
        BAT *b = bd;
 
        BATcheck(b, "BATsave", GDK_FAIL);
-       CHECKDEBUG BATassertProps(b);
+       /* there is a possibility that BATsave gets called with a
+        * pointer to a BAT that has *no* fixes (refs == 0), and so
+        * the heaps may not be in core, in which case BATmirror()
+        * would not find the mirror (this can happen when BATsave
+        * gets called during a (sub)commit after the BAT had been
+        * trimmed) */
+       CHECKDEBUG if (BATmirror(b)) BATassertProps(b);
 
        /* views cannot be saved, but make an exception for
         * force-remapped views */
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to