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

Lock hash heap when saving it.


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
@@ -860,8 +860,10 @@ BATsave_locked(BAT *bd)
                        bd->tvheap->wasempty = vhs.wasempty;
                bd->batCopiedtodisk = true;
                DESCclean(bd);
+               MT_rwlock_rdlock(&bd->thashlock);
                if (bd->thash && bd->thash != (Hash *) 1)
                        BAThashsave(bd, dosync);
+               MT_rwlock_rdunlock(&bd->thashlock);
        }
        return err;
 }
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to