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

There are no changes to be flushed when we don't log.


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
@@ -2316,7 +2316,7 @@ logger_flush(logger *lg, ulng ts)
 lng
 logger_changes(logger *lg)
 {
-       return (lg->id - lg->saved_id - 1);
+       return LOG_DISABLED(lg) ? 0 : (lg->id - lg->saved_id - 1);
 }
 
 int
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to