Skip to content

Commit

Permalink
Conditional log.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Dec 15, 2024
1 parent b9c2d4a commit 3c6de53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/optimization/table_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3c6de53

Please sign in to comment.