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

insertonly_nowal = true sets log_size to forcemito size.


diffs (24 lines):

diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -2996,7 +2996,6 @@ log_delta(logger *lg, BAT *uid, BAT *uva
 #define DBLKSZ         8192
 #define SEGSZ          (64*DBLKSZ)
 
-#define LOG_TINY        (LL_CONSTANT(2))
 #define LOG_MINI       (LL_CONSTANT(2)*1024)
 #define LOG_LARGE      (LL_CONSTANT(2)*1024*1024*1024)
 
@@ -3012,9 +3011,9 @@ check_rotation_conditions(logger *lg)
                return true;
        const lng p = (lng) getfilepos(getFile(lg->current->output_log));
 
-       const lng log_large = (ATOMIC_GET(&GDKdebug) & FORCEMITOMASK) ? 
LOG_MINI :
-          GDKgetenv_istrue("insertonly_nowal") ? LOG_TINY : LOG_LARGE;
-       bool res = (lg->saved_id + 1 >= lg->id && 
ATOMIC_GET(&lg->current->drops) > 100000) || (p > log_large);
+       const lng log_size = (ATOMIC_GET(&GDKdebug) & FORCEMITOMASK) || 
GDKgetenv_istrue("insertonly_nowal") ?
+               LOG_MINI : LOG_LARGE;
+       bool res = (lg->saved_id + 1 >= lg->id && 
ATOMIC_GET(&lg->current->drops) > 100000) || (p > log_size);
        if (res)
                return (ATOMIC_GET(&lg->nr_open_files) < 8);
        return res;
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to