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,10 +139,13 @@ func (m *Manager) EvictCacheValueByFormat(keys ...string) {
|
||||
m.cacheMutex.Lock()
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (m *Manager) GetConfig(key string) (string, error) {
|
||||
realKey := formatKey(key)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user