Changeset: ceee3d148569 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ceee3d148569
Modified Files:
        gdk/gdk_logger.c
Branch: Sep2022
Log Message:

small change, only create new_logfile when flushing, ie when we end a group of 
commits.


diffs (12 lines):

diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -2940,7 +2940,7 @@ log_tdone(logger *lg, ulng commit_ts)
        }
        stream* output_log = lg->output_log;
        ulng id = lg->id;
-       if (!LOG_DISABLED(lg) && new_logfile(lg, output_log, id) != GDK_SUCCEED)
+       if (lg->flushing_output_log && !LOG_DISABLED(lg) && new_logfile(lg, 
output_log, id) != GDK_SUCCEED)
                GDKfatal("Could not create new log file\n");
 }
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to