mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-02 01:06:41 +08:00
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
dba779e8c5
commit
2dee6534a1
@ -301,6 +301,8 @@ func (sc *ShardCluster) SyncSegments(distribution []*querypb.ReplicaSegmentsInfo
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
allocations := sc.segments.Clone(filterNothing)
|
||||
sc.mut.Unlock()
|
||||
|
||||
// notify handoff wait online if any
|
||||
@ -310,7 +312,7 @@ func (sc *ShardCluster) SyncSegments(distribution []*querypb.ReplicaSegmentsInfo
|
||||
|
||||
sc.mutVersion.Lock()
|
||||
defer sc.mutVersion.Unlock()
|
||||
version := NewShardClusterVersion(sc.nextVersionID.Inc(), sc.segments.Clone(filterNothing))
|
||||
version := NewShardClusterVersion(sc.nextVersionID.Inc(), allocations)
|
||||
sc.versions.Store(version.versionID, version)
|
||||
sc.currentVersion = version
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user