Changeset: c00d4131dd1e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c00d4131dd1e
Modified Files:
        sql/storage/store.c
Branch: default
Log Message:

Fixed lock inversion problem.


diffs (23 lines):

diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -2098,8 +2098,8 @@ store_init(int debug, store_type store_t
        for(int i = 0; i<NR_COLUMN_LOCKS; i++)
                MT_lock_init(&store->column_locks[i], "sqlstore_column");
 
+       MT_lock_set(&store->flush);
        MT_lock_set(&store->lock);
-       MT_lock_set(&store->flush);
 
        /* initialize empty bats */
        switch (store_tpe) {
@@ -2175,8 +2175,8 @@ store_exit(sqlstore *store)
 {
        sql_allocator *sa = store->sa;
        MT_lock_set(&store->commit);
+       MT_lock_set(&store->flush);
        MT_lock_set(&store->lock);
-       MT_lock_set(&store->flush);
 
        TRC_DEBUG(SQL_STORE, "Store locked\n");
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to