mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
fix: Remove RLock
re-entry in GetNumRowsOfPartition
(#33045)
Resolves #33044 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com> Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
3d85e6e028
commit
dea7faf394
@ -1035,8 +1035,6 @@ func (m *meta) GetSegmentsIDOfPartitionWithDropped(collectionID, partitionID Uni
|
||||
|
||||
// GetNumRowsOfPartition returns row count of segments belongs to provided collection & partition
|
||||
func (m *meta) GetNumRowsOfPartition(collectionID UniqueID, partitionID UniqueID) int64 {
|
||||
m.RLock()
|
||||
defer m.RUnlock()
|
||||
var ret int64
|
||||
segments := m.SelectSegments(WithCollection(collectionID), SegmentFilterFunc(func(si *SegmentInfo) bool {
|
||||
return isSegmentHealthy(si) && si.GetPartitionID() == partitionID
|
||||
|
Loading…
Reference in New Issue
Block a user