Changeset: 9c8065327573 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9c8065327573
Modified Files:
        gdk/gdk_bat.c
        gdk/gdk_bbp.c
Branch: default
Log Message:

Fix some data races.


diffs (28 lines):

diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -1157,12 +1157,12 @@ BUNappendmulti(BAT *b, const void *value
                b->tnonil = false;
                b->tsorted = b->trevsorted = b->tkey = false;
        }
+       BATiter bi = bat_iterator_nolock(b);
        MT_lock_unset(&b->theaplock);
        if (values && b->ttype) {
                int (*atomcmp) (const void *, const void *) = 
ATOMcompare(b->ttype);
                const void *atomnil = ATOMnilptr(b->ttype);
                const void *minvalp = NULL, *maxvalp = NULL;
-               BATiter bi = bat_iterator_nolock(b);
                if (bi.minpos != BUN_NONE)
                        minvalp = BUNtail(bi, bi.minpos);
                if (bi.maxpos != BUN_NONE)
diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -3501,7 +3501,6 @@ do_backup(const char *srcdir, const char
        char extnew[16];
        bool istail = strncmp(ext, "tail", 4) == 0;
 
-       h->dirty |= dirty;
        if (h->wasempty) {
                return GDK_SUCCEED;
        }
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to