mirror of https://github.com/milvus-io/milvus.git
[skip ci] Fix bug: concurrent map read and map write (#5713)
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>pull/5779/head
parent
f2e551e9a0
commit
6ec2074da4
|
@ -57,7 +57,12 @@ func (ticker *channelsTimeTickerImpl) getMinTsStatistics() (map[pChan]Timestamp,
|
|||
ticker.statisticsMtx.RLock()
|
||||
defer ticker.statisticsMtx.RUnlock()
|
||||
|
||||
return ticker.minTsStatistics, nil
|
||||
ret := make(map[pChan]Timestamp)
|
||||
for k, v := range ticker.minTsStatistics {
|
||||
ret[k] = v
|
||||
}
|
||||
|
||||
return ret, nil
|
||||
}
|
||||
|
||||
func (ticker *channelsTimeTickerImpl) initStatistics() {
|
||||
|
|
Loading…
Reference in New Issue