Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit bc3572a

Browse files
committed
better comment
1 parent 62d8759 commit bc3572a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

platform/database_common/log_manager.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,9 @@ func (lm *LogManager) ResolveIndexPattern(ctx context.Context, schema schema.Reg
200200
return util.Distinct(results), nil
201201
}
202202

203-
// buildStringOfCountQuery builds query string which will be sent to DB
204-
// Takes care whether `table` is "normal" or virtual
203+
// buildStringOfCountQuery builds string of count query which will be sent to DB (for 1 table).
204+
// If we query multiple tables at once, it needs to be called multiple times.
205+
// Takes care of whether `table` is "normal" or virtual (common_table)
205206
func (lm *LogManager) buildStringOfCountQuery(table *Table) string {
206207
if table.VirtualTable {
207208
// CAUTION: Using only table.Name (and discarding table.DatabaseName) on purpose

0 commit comments

Comments
 (0)