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:
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

View File

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