mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
lib/storage: properly cache tagFilters -> TSIDs entries from historical index
This commit is contained in:
parent
964c296f96
commit
5b41122292
1 changed files with 2 additions and 1 deletions
|
@ -991,7 +991,8 @@ func (db *indexDB) searchTSIDs(tfss []*TagFilters, tr TimeRange, maxMetrics int)
|
||||||
extTSIDs, err = is.searchTSIDs(tfss, tr, maxMetrics)
|
extTSIDs, err = is.searchTSIDs(tfss, tr, maxMetrics)
|
||||||
extDB.putIndexSearch(is)
|
extDB.putIndexSearch(is)
|
||||||
|
|
||||||
db.putToTagCache(tsids, tfKeyExtBuf.B)
|
sort.Slice(extTSIDs, func(i, j int) bool { return extTSIDs[i].Less(&extTSIDs[j]) })
|
||||||
|
extDB.putToTagCache(extTSIDs, tfKeyExtBuf.B)
|
||||||
}) {
|
}) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in a new issue