Changeset: 1f2c1802f1fb for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1f2c1802f1fb
Modified Files:
gdk/gdk_storage.c
Branch: Jul2021
Log Message:
Make sure we use the correct copy of the BAT descriptor to check for dirty bit
when saving hash.
We were using a copy of the descriptor where the dirty bit was not
cleared after saving the bat. Use the copy where the bit was cleared,
or else the hash file will not be saved.
diffs (14 lines):
diff --git a/gdk/gdk_storage.c b/gdk/gdk_storage.c
--- a/gdk/gdk_storage.c
+++ b/gdk/gdk_storage.c
@@ -856,8 +856,8 @@ BATsave(BAT *bd)
if (err == GDK_SUCCEED) {
bd->batCopiedtodisk = true;
DESCclean(bd);
- if (b->thash && b->thash != (Hash *) 1)
- BAThashsave(b, dosync);
+ if (bd->thash && bd->thash != (Hash *) 1)
+ BAThashsave(bd, dosync);
}
MT_rwlock_rdunlock(&bd->thashlock);
MT_lock_unset(&bd->theaplock);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list