remove RegisteredIndexes method
parent
6549f24b16
commit
aeefeb2eed
|
@ -2,8 +2,6 @@ package tsdb
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/influxdb/monitor/diagnostics"
|
||||
"github.com/influxdata/influxdb/query"
|
||||
"github.com/influxdata/platform/toml"
|
||||
|
@ -104,18 +102,6 @@ func (c *Config) Validate() error {
|
|||
if c.MaxConcurrentCompactions < 0 {
|
||||
return errors.New("max-concurrent-compactions must be greater than 0")
|
||||
}
|
||||
|
||||
valid := false
|
||||
for _, e := range RegisteredIndexes() {
|
||||
if e == c.Index {
|
||||
valid = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if !valid {
|
||||
return fmt.Errorf("unrecognized index %s", c.Index)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -991,12 +991,6 @@ func (itr *tagValueMergeIterator) Next() (_ []byte, err error) {
|
|||
return value, nil
|
||||
}
|
||||
|
||||
// RegisteredIndexes returns the slice of currently registered indexes.
|
||||
func RegisteredIndexes() []string {
|
||||
// TODO(edd): This can be removed, cleaning up test code in the process.
|
||||
return []string{TSI1IndexName}
|
||||
}
|
||||
|
||||
// assert will panic with a given formatted message if the given condition is false.
|
||||
func assert(condition bool, msg string, v ...interface{}) {
|
||||
if !condition {
|
||||
|
|
Loading…
Reference in New Issue