Changeset: 2596a0974baa for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/2596a0974baa
Modified Files:
        gdk/gdk_bbp.c
        gdk/gdk_storage.c
Branch: default
Log Message:

Merge with Jun2023 branch.


diffs (31 lines):

diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -2247,7 +2247,7 @@ BBPdump(void)
                        continue;
                BAT *b = BBP_desc(i);
                unsigned status = BBP_status(i);
-               printf("# %d: " ALGOOPTBATFMT "refs=%d lrefs=%d status=%u%s",
+               printf("# %d: " ALGOOPTBATFMT " refs=%d lrefs=%d status=%u%s",
                       i,
                       ALGOOPTBATPAR(b),
                       BBP_refs(i),
diff --git a/gdk/gdk_storage.c b/gdk/gdk_storage.c
--- a/gdk/gdk_storage.c
+++ b/gdk/gdk_storage.c
@@ -764,13 +764,12 @@ BATsave_iter(BAT *b, BATiter *bi, BUN si
                }
                if (size != b->batCount || b->batInserted < b->batCount) {
                        /* if the sizes don't match, the BAT must be dirty */
-                       b->batCopiedtodisk = false;
                        b->theap->dirty = true;
                        if (b->tvheap)
                                b->tvheap->dirty = true;
-               } else {
-                       b->batCopiedtodisk = true;
                }
+               /* there is something on disk now */
+               b->batCopiedtodisk = true;
                MT_lock_unset(&b->theaplock);
                if (locked &&  b->thash && b->thash != (Hash *) 1)
                        BAThashsave(b, dosync);
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to