Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc7e18f5

Browse files
authored
Do not use boltdb-shipper if no ring or address are given. (grafana#5902)
1 parenta6bec98 commitc7e18f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎pkg/storage/factory.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ func NewIndexClient(name string, cfg Config, schemaCfg config.SchemaConfig, limi
144144
ifboltDBIndexClientWithShipper!=nil {
145145
returnboltDBIndexClientWithShipper,nil
146146
}
147-
ifcfg.BoltDBShipperConfig.Mode==shipper.ModeReadOnly&&cfg.BoltDBShipperConfig.IndexGatewayClientConfig.Address!="" {
147+
ifcfg.BoltDBShipperConfig.Mode==shipper.ModeReadOnly&&
148+
(cfg.BoltDBShipperConfig.IndexGatewayClientConfig.Address!=""||cfg.BoltDBShipperConfig.IndexGatewayClientConfig.Ring!=nil) {
148149
gateway,err:=shipper.NewGatewayClient(cfg.BoltDBShipperConfig.IndexGatewayClientConfig,registerer,util_log.Logger)
149150
iferr!=nil {
150151
returnnil,err

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp