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

Clean up code a little.


diffs (16 lines):

diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -3052,10 +3052,8 @@ check_rotation_conditions(logger *lg)
        const lng p = (lng) getfilepos(getFile(lg->current->output_log));
 
        const lng log_large = (ATOMIC_GET(&GDKdebug) & FORCEMITOMASK) ? 
LOG_MINI : LOG_LARGE;
-       bool res = (lg->saved_id + 1 >= lg->id && 
ATOMIC_GET(&lg->current->drops) > 100000) || (p > log_large);
-       if (res)
-               return (ATOMIC_GET(&lg->nr_open_files) < 8);
-       return res;
+       bool res = (p > log_large) || (lg->saved_id + 1 >= lg->id && 
ATOMIC_GET(&lg->current->drops) > 100000);
+       return res && (ATOMIC_GET(&lg->nr_open_files) < 8);
 }
 
 gdk_return
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to