mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
fix: evict paramtable cache miss (#34771)
relate: https://github.com/milvus-io/milvus/issues/33461 Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
parent
c64a078458
commit
3655ab10b2
@ -139,9 +139,12 @@ func (m *Manager) EvictCacheValueByFormat(keys ...string) {
|
|||||||
m.cacheMutex.Lock()
|
m.cacheMutex.Lock()
|
||||||
defer m.cacheMutex.Unlock()
|
defer m.cacheMutex.Unlock()
|
||||||
|
|
||||||
for _, key := range keys {
|
set := typeutil.NewSet(keys...)
|
||||||
|
for key := range m.configCache {
|
||||||
|
if set.Contain(formatKey(key)) {
|
||||||
delete(m.configCache, key)
|
delete(m.configCache, key)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Manager) GetConfig(key string) (string, error) {
|
func (m *Manager) GetConfig(key string) (string, error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user