mirror of https://github.com/milvus-io/milvus.git
Cherry-pick from master pr: #31505 See also #31504 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/31509/head
parent
9174958335
commit
b8d8805c87
|
@ -81,6 +81,8 @@ func (s *L0Segment) RowNum() int64 {
|
|||
}
|
||||
|
||||
func (s *L0Segment) MemSize() int64 {
|
||||
s.dataGuard.RLock()
|
||||
defer s.dataGuard.RUnlock()
|
||||
return lo.SumBy(s.pks, func(pk storage.PrimaryKey) int64 {
|
||||
return pk.Size() + 8
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue