mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 04:19:18 +08:00
Fix data race in internal/datacoord/meta.go (#6005)
Signed-off-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
parent
fe8432016d
commit
a529410b38
@ -345,6 +345,8 @@ func (m *meta) SaveBinlogAndCheckPoints(segID UniqueID, flushed bool,
|
||||
}
|
||||
|
||||
func (m *meta) GetSegmentsByChannel(dmlCh string) []*datapb.SegmentInfo {
|
||||
m.RLock()
|
||||
defer m.RUnlock()
|
||||
infos := make([]*datapb.SegmentInfo, 0)
|
||||
for _, segment := range m.segments {
|
||||
if segment.InsertChannel != dmlCh {
|
||||
|
Loading…
Reference in New Issue
Block a user