Changeset: 45d4164a8e7e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/45d4164a8e7e
Modified Files:
        gdk/gdk_logger.c
Branch: logger-fix
Log Message:

fix and improve rotation conditions


diffs (13 lines):

diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -2866,8 +2866,7 @@ check_rotation_conditions(logger *lg) {
 
        const lng log_large = (GDKdebug & FORCEMITOMASK)?LOG_MINI:LOG_LARGE;
        return
-               (lg->saved_id+1 < lg->id && lg->current->drops > 100000) ||
-               (p > log_large || (((lng) ATOMIC_GET(&lg->current->end) - (lng) 
ATOMIC_GET(&lg->current->pend)) * 1024) > log_large);
+               (lg->saved_id+1 >= lg->id && lg->current->drops > 100000) || (p 
> log_large);
 }
 
 gdk_return
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to