Storage: refactor filtering, improve performance (#47403)

* Storage: refactor filtering, improve performance

* added a comment to `newpathfilter`

* after merge fixes
This commit is contained in:
Artur Wierzbicki
2022-04-21 23:27:43 +04:00
committed by GitHub
parent 53a6c0210d
commit 9f0b6a5754
12 changed files with 483 additions and 380 deletions

View File

@@ -57,7 +57,7 @@ func newDiskStorage(prefix string, name string, cfg *StorageLocalDiskConfig) *ro
} else {
s.store = filestorage.NewCdkBlobStorage(grafanaStorageLogger,
bucket, "",
filestorage.NewPathFilters(cfg.Roots, nil, nil, nil))
filestorage.NewPathFilter(cfg.Roots, nil, nil, nil))
meta.Ready = true // exists!
}