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

Copy the role when copying the bat when changing access mode.


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
@@ -2317,7 +2317,7 @@ BATsetaccess(BAT *b, restrict_t newmode)
        BATcheck(b, NULL);
        if (newmode != BAT_READ &&
            (isVIEW(b) || (ATOMIC_GET(&b->theap->refs) & HEAPREFS) > 1)) {
-               BAT *bn = COLcopy(b, b->ttype, true, TRANSIENT);
+               BAT *bn = COLcopy(b, b->ttype, true, b->batRole);
                BBPunfix(b->batCacheid);
                if (bn == NULL)
                        return NULL;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to