Skip to content

Commit 3c7f5ed

Browse files
authored
Fix Init of db indexer (#25470)
Fix regression of #25174. The `Init` of the db indexer should return true to indicate that the index was opened/existed, or the indexer will try to populate the index (not really populate, just fill the queue, `Index` method of the db indexer is a dummy).
1 parent e441a5d commit 3c7f5ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/indexer/internal/db/indexer.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ type Indexer struct{}
1616

1717
// Init initializes the indexer
1818
func (i *Indexer) Init(_ context.Context) (bool, error) {
19-
// nothing to do
20-
return false, nil
19+
// Return true to indicate that the index was opened/existed.
20+
// So that the indexer will not try to populate the index, the data is already there.
21+
return true, nil
2122
}
2223

2324
// Ping checks if the indexer is available

0 commit comments

Comments
 (0)