Changeset: f80e5549ce3f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f80e5549ce3f
Modified Files:
        sql/storage/store.c
Branch: Jun2016
Log Message:

Don't hide call to MT_lock_unset in a function.


diffs (30 lines):

diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -1363,7 +1363,6 @@ store_load(void) {
        sqlid id = 0;
 
        sa = sa_create();
-       MT_lock_unset(&bs_lock);
        types_init(sa, logger_debug);
 
 #define FUNC_OIDS 2000
@@ -1612,6 +1611,7 @@ store_init(int debug, store_type store, 
        }
 
        /* create the initial store structure or re-load previous data */
+       MT_lock_unset(&bs_lock);
        return store_load();
 }
 
@@ -1745,9 +1745,9 @@ store_manager(void)
                        /* re-set the store_oid */
                        store_oid = 0;
                        /* reload the store and the global transactions */
+                       MT_lock_unset(&bs_lock);
                        res = store_load();
                        if (res < 0) {
-                               MT_lock_unset(&bs_lock);
                                GDKfatal("shared write-ahead log store re-load 
failure");
                        }
                        MT_lock_set(&bs_lock);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to