Changeset: 5fd85f0d75d6 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/5fd85f0d75d6
Modified Files:
gdk/gdk_logger.c
Branch: Jul2021
Log Message:
make sure we cleanup the log files also when large bats are dropped
diffs (20 lines):
diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -2519,6 +2519,7 @@ log_bat_transient(logger *lg, log_id id)
if (lg->debug & 1)
fprintf(stderr, "#Logged destroyed bat (%d) %d\n", id,
bid);
+ lg->end += BATcount(BBPquickdesc(bid, true));
gdk_return r = logger_del_bat(lg, bid);
logger_unlock(lg);
return r;
@@ -2642,7 +2643,7 @@ new_logfile(logger *lg)
p = (lng) getfilepos(getFile(lg->output_log));
if (p == -1)
return GDK_FAIL;
- if (p > log_large) {
+ if (p > log_large || (lg->end*1024) > log_large) {
lg->id++;
logger_close_output(lg);
return logger_open_output(lg);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list