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
aoiasd 2024-08-02 11:52:14 +08:00 committed by GitHub
parent c64a078458
commit 3655ab10b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -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)
}
}
}