fix(tsdb): MaxSeriesPerDatabase is only supported by the inmem index

pull/19446/head
Stuart Carnie 2020-08-12 09:12:16 -07:00
parent 56e27b8893
commit a29ec693df
No known key found for this signature in database
GPG Key ID: 848D9C9718D78B4F
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ func TestMaxSeriesLimit(t *testing.T) {
opts.Config.WALDir = filepath.Join(tmpDir, "wal")
opts.Config.MaxSeriesPerDatabase = 1000
opts.InmemIndex = inmem.NewIndex(filepath.Base(tmpDir), sfile.SeriesFile)
opts.IndexVersion = tsdb.InmemIndexName
sh := tsdb.NewShard(1, tmpShard, tmpWal, sfile.SeriesFile, opts)