Skip to content

Commit 8dcc2d6

Browse files
authored
Use shipper as indexClient for read mode. (#6461)
1 parent 66324a6 commit 8dcc2d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/loki/modules.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ func (t *Loki) initStore() (_ services.Service, err error) {
490490
// Use AsyncStore to query both ingesters local store and chunk store for store queries.
491491
// Only queriers should use the AsyncStore, it should never be used in ingesters.
492492
asyncStore = true
493-
case t.Cfg.isModuleEnabled(IndexGateway):
493+
fallthrough
494+
case t.Cfg.isModuleEnabled(IndexGateway) || t.Cfg.isModuleEnabled(Read):
494495
// we want to use the actual storage when running the index-gateway, so we remove the Addr from the config
495496
t.Cfg.StorageConfig.BoltDBShipperConfig.IndexGatewayClientConfig.Disabled = true
496497
t.Cfg.StorageConfig.TSDBShipperConfig.IndexGatewayClientConfig.Disabled = true

0 commit comments

Comments
 (0)