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

Release flush lock even if a previous action failed


diffs (20 lines):

diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -3473,10 +3473,12 @@ sql_trans_commit(sql_trans *tr)
                        c->ts = commit_ts;
                }
                /* when directly flushing: flush logger after changes got 
applied */
-               if (ok == LOG_OK && flush) {
-                       ok = store->logger_api.log_tend(store); /* flush/sync */
-                       if (ok == LOG_OK)
-                               ok = store->logger_api.log_tdone(store, 
commit_ts); /* mark as done */
+               if (flush) {
+                       if (ok == LOG_OK) {
+                               ok = store->logger_api.log_tend(store); /* 
flush/sync */
+                               if (ok == LOG_OK)
+                                       ok = store->logger_api.log_tdone(store, 
commit_ts); /* mark as done */
+                       }
                        MT_lock_unset(&store->flush);
                }
                /* garbage collect */
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to