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

try to create a new log file more often.


diffs (22 lines):

diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -2396,8 +2396,8 @@ store_manager(sqlstore *store)
        MT_lock_set(&store->flush);
 
        for (;;) {
-               if (ATOMIC_GET(&store->nr_active) == 0 &&
-                       (store->debug&128 || ATOMIC_GET(&store->lastactive) + 
IDLE_TIME * 1000000 < (ATOMIC_BASE_TYPE) GDKusec())) {
+               const int idle = ATOMIC_GET(&GDKdebug) & FORCEMITOMASK ? 5000 : 
IDLE_TIME * 1000000;
+               if (store->debug&128 || ATOMIC_GET(&store->lastactive) + idle < 
(ATOMIC_BASE_TYPE) GDKusec()) {
                        MT_lock_unset(&store->flush);
                        store_lock(store);
                        if (ATOMIC_GET(&store->nr_active) == 0) {
@@ -3753,6 +3753,7 @@ sql_trans_destroy(sql_trans *tr)
 
        TRC_DEBUG(SQL_STORE, "Destroy transaction: %p\n", tr);
        _DELETE(tr->name);
+       assert(!tr->active || tr->parent);
        if (!list_empty(tr->changes))
                sql_trans_rollback(tr, false);
        sqlstore *store = tr->store;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to