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

Don't set empty heaps to dirty: we don't save them anyway.


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
@@ -1779,7 +1779,7 @@ BATsetcount(BAT *b, BUN cnt)
        MT_lock_set(&b->theaplock);
        b->batCount = cnt;
        b->batDirtydesc = true;
-       b->theap->dirty |= b->ttype != TYPE_void && b->theap->parentid == 
b->batCacheid;
+       b->theap->dirty |= b->ttype != TYPE_void && b->theap->parentid == 
b->batCacheid && cnt > 0;
        if (b->theap->parentid == b->batCacheid)
                b->theap->free = tailsize(b, cnt);
        if (b->ttype == TYPE_void)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to