mirror of https://github.com/milvus-io/milvus.git
Fix data race in DataNode (#19470)
Signed-off-by: yah01 <yang.cen@zilliz.com> Signed-off-by: yah01 <yang.cen@zilliz.com>pull/19479/head
parent
2442335aa2
commit
9801c6dfc9
|
@ -907,8 +907,8 @@ func (replica *SegmentReplica) listNotFlushedSegmentIDs() []UniqueID {
|
|||
// getSegmentStatslog returns the segment statslog for the provided segment id.
|
||||
func (replica *SegmentReplica) getSegmentStatslog(segID UniqueID) ([]byte, error) {
|
||||
replica.segMu.RLock()
|
||||
defer replica.segMu.RUnlock()
|
||||
colID := replica.getCollectionID()
|
||||
replica.segMu.RUnlock()
|
||||
|
||||
schema, err := replica.getCollectionSchema(colID, 0)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue