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

Ignore BATsetaccess request if vheap has storage STORE_NOWN.


diffs (13 lines):

diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -2459,7 +2459,8 @@ BATsetaccess(BAT *b, restrict_t newmode)
        }
        MT_lock_set(&b->theaplock);
        bakmode = b->batRestricted;
-       if (bakmode != newmode) {
+       if (bakmode != newmode &&
+           (b->tvheap == NULL || b->tvheap->storage != STORE_NOWN)) {
                bool existing = (BBP_status(b->batCacheid) & BBPEXISTING) != 0;
                bool wr = (newmode == BAT_WRITE);
                bool rd = (bakmode == BAT_WRITE);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to