Changeset: b16623cead94 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/b16623cead94 Modified Files: gdk/gdk_batop.c Branch: Dec2023 Log Message:
Add some locking. diffs (19 lines): diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c --- a/gdk/gdk_batop.c +++ b/gdk/gdk_batop.c @@ -1323,6 +1323,7 @@ BATappend_or_update(BAT *b, BAT *p, cons bool isnil = atomcmp(new, nil) == 0; anynil |= isnil; + MT_lock_set(&b->theaplock); if (old == NULL || (b->tnil && !anynil && @@ -1335,6 +1336,7 @@ BATappend_or_update(BAT *b, BAT *p, cons } b->tnonil &= !isnil; b->tnil |= isnil; + MT_lock_unset(&b->theaplock); if (bi.maxpos != BUN_NONE) { if (!isnil && atomcmp(BUNtvar(bi, bi.maxpos), new) < 0) { _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org