Changeset: 8627706f3485 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/8627706f3485 Modified Files: sql/storage/store.c Branch: Jun2020 Log Message:
on sql_debug=128 wait for all transactions too end first. 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 @@ -2298,6 +2298,7 @@ flusher_should_run(void) void store_exit(void) { + int debug = store_debug&128; MT_lock_set(&bs_lock); TRC_DEBUG(SQL_STORE, "Store locked\n"); @@ -2308,6 +2309,11 @@ store_exit(void) MT_sleep_ms(100); MT_lock_set(&bs_lock); } + while (debug && ATOMIC_GET(&store_nr_active)) { /* wait for all to finish */ + MT_lock_unset(&bs_lock); + MT_sleep_ms(100); + MT_lock_set(&bs_lock); + } if (gtrans) { MT_lock_unset(&bs_lock); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list