Commit 5dbf21aa authored by Ke Zhang's avatar Ke Zhang

optimize deleteFromIndices method in thread_safe_store.go

parent 628af356
......@@ -261,12 +261,13 @@ func (c *threadSafeMap) deleteFromIndices(obj interface{}, key string) error {
}
index := c.indices[name]
if index == nil {
continue
}
for _, indexValue := range indexValues {
if index != nil {
set := index[indexValue]
if set != nil {
set.Delete(key)
}
set := index[indexValue]
if set != nil {
set.Delete(key)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment