mirror of https://github.com/milvus-io/milvus.git
Cherry-pick from master pr: #37691 Related to #37690 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/37713/head
parent
5d5f899274
commit
e222289038
|
@ -119,7 +119,11 @@ func (m *Manager) CASCachedValue(key string, origin string, value interface{}) b
|
|||
m.cacheMutex.Lock()
|
||||
defer m.cacheMutex.Unlock()
|
||||
current, err := m.GetConfig(key)
|
||||
if err != nil && !errors.Is(err, ErrKeyNotFound) {
|
||||
if errors.Is(err, ErrKeyNotFound) {
|
||||
m.configCache[key] = value
|
||||
return true
|
||||
}
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
if current != origin {
|
||||
|
|
Loading…
Reference in New Issue