Changeset: d0226b4b1333 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d0226b4b1333
Modified Files:
        gdk/gdk_storage.c
Branch: Jun2023
Log Message:

When saving a bat succeeded, always set batCopiedtodisk.


diffs (19 lines):

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 -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to