Changeset: 01ef68a08a53 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/01ef68a08a53
Modified Files:
        gdk/gdk_bat.c
Branch: default
Log Message:

Refine test for empty (nil only) vheap.


diffs (12 lines):

diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -2477,7 +2477,7 @@ BATsetaccess(BAT *b, restrict_t newmode)
                        m3 = HEAPchangeaccess(b->tvheap, ACCESSMODE(wr && ta, 
rd && ta), existing);
                }
                if ((b->theap->base && m1 == STORE_INVALID) ||
-                   m3 == STORE_INVALID) {
+                   (b->tvheap && b->tvheap->free > 0 && m3 == STORE_INVALID)) {
                        GDKerror("invalid storage " ALGOBATFMT "\n",
                                 ALGOBATPAR(b));
                        MT_lock_unset(&b->theaplock);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to