Changeset: 97dd3bcfd1a1 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/97dd3bcfd1a1
Modified Files:
gdk/gdk_logger.c
Branch: Jul2021
Log Message:
only cleanup loggers catalog bats iff about 50% of the entries could be cleaned
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
@@ -1629,6 +1629,8 @@ bm_subcommit(logger *lg)
sizes[i] = BATcount(dcatalog);
n[i++] = dcatalog->batCacheid;
+ if (cleanup < (lg->cnt/2))
+ cleanup = 0;
if (cleanup && (rcnt=cleanup_and_swap(lg, r, bids, lids, cnts,
catalog_bid, catalog_id, dcatalog, cleanup)) < 0) {
GDKfree(n);
GDKfree(r);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]