未验证 提交 a529410b 编写于 作者: S sunby 提交者: GitHub

Fix data race in internal/datacoord/meta.go (#6005)

Signed-off-by: Nsunby <bingyi.sun@zilliz.com>
上级 fe843201
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册