mirror of https://github.com/milvus-io/milvus.git
fix: evict paramtable cache miss (#34771)
relate: https://github.com/milvus-io/milvus/issues/33461 Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>pull/35099/head
parent
c64a078458
commit
3655ab10b2
|
@ -139,8 +139,11 @@ func (m *Manager) EvictCacheValueByFormat(keys ...string) {
|
|||
m.cacheMutex.Lock()
|
||||
defer m.cacheMutex.Unlock()
|
||||
|
||||
for _, key := range keys {
|
||||
delete(m.configCache, key)
|
||||
set := typeutil.NewSet(keys...)
|
||||
for key := range m.configCache {
|
||||
if set.Contain(formatKey(key)) {
|
||||
delete(m.configCache, key)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue