Skip to content
Permalink
Browse files

Merge pull request #1470 from D3luxee/patch-1

Don't validate MaxChunkSpan if BigTable store is disabled
  • Loading branch information...
Dieterbe committed Sep 19, 2019
2 parents 267c5bb + 34886bb commit 300662917a6ac2d8997ec26f97b8a88fcb0ecd14
Showing with 4 additions and 2 deletions.
  1. +4 −2 store/bigtable/config.go
@@ -41,8 +41,10 @@ func (cfg *StoreConfig) Validate(schemaMaxChunkSpan uint32) error {
if CliConfig.MaxChunkSpan%time.Second != 0 {
return errors.New("max-chunkspan must be a whole number of seconds")
}
if uint32(CliConfig.MaxChunkSpan.Seconds()) < schemaMaxChunkSpan {
return fmt.Errorf("max-chunkspan must be at least as high as the max chunkspan used in your storage-schemas (which is %d)", schemaMaxChunkSpan)
if CliConfig.Enabled {
if uint32(CliConfig.MaxChunkSpan.Seconds()) < schemaMaxChunkSpan {
return fmt.Errorf("max-chunkspan must be at least as high as the max chunkspan used in your storage-schemas (which is %d)", schemaMaxChunkSpan)
}
}
return nil
}

0 comments on commit 3006629

Please sign in to comment.
You can’t perform that action at this time.