[skip ci] Add comment for getSegmentsMemSize (#9433)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/9436/head
bigsheeper 2021-10-08 06:43:26 +08:00 committed by GitHub
parent 05bda0752f
commit 44622622f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ type collectionReplica struct {
etcdKV *etcdkv.EtcdKV
}
// getSegmentsMemSize get the memory size in bytes of all the Segments
func (colReplica *collectionReplica) getSegmentsMemSize() int64 {
colReplica.mu.RLock()
defer colReplica.mu.RUnlock()