From 3c6de536b0588a2ac85ec0c97b1781cdfbe0620e Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Sat, 14 Dec 2024 18:07:02 -0800 Subject: [PATCH] Conditional log. --- lib/optimization/table_data.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/optimization/table_data.go b/lib/optimization/table_data.go index e539cc02..34825dd7 100644 --- a/lib/optimization/table_data.go +++ b/lib/optimization/table_data.go @@ -155,7 +155,11 @@ func (t *TableData) InsertRow(pk string, rowData map[string]any, delete bool) { // If prevRow doesn't exist, it'll be 0, which is a no-op. t.approxSize += newRowSize - prevRowSize t.rowsData[pk] = rowData - slog.Info("Inserting row", slog.String("pk", pk), slog.Any("rowData", t.rowsData[pk])) + + if t.name == "trx" { + slog.Info("Inserting row", slog.String("pk", pk), slog.Any("rowData", t.rowsData[pk])) + } + if !delete { t.containOtherOperations = true } else if delete && !t.topicConfig.SoftDelete {