Changeset: 8e10024cbc62 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8e10024cbc62
Modified Files:
        sql/storage/bat/bat_storage.c
Branch: default
Log Message:

fix problem with looking up oldest transaction (todo change into lockless list)


diffs (15 lines):

diff --git a/sql/storage/bat/bat_storage.c b/sql/storage/bat/bat_storage.c
--- a/sql/storage/bat/bat_storage.c
+++ b/sql/storage/bat/bat_storage.c
@@ -2974,9 +2974,11 @@ claim_tab(sql_trans *tr, sql_table *t, s
        if ((s = bind_del_data(tr, t)) == NULL)
                return BUN_NONE;
 
+       store_lock(tr->store);
        lock_table(tr->store, t->base.id);
        BUN slot = claim_segment(tr, t, s, cnt); /* find slot */
        unlock_table(tr->store, t->base.id);
+       store_unlock(tr->store);
        if (slot == BUN_NONE)
                return BUN_NONE;
        return (size_t)slot;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to