mirror of https://github.com/milvus-io/milvus.git
fix: remove busy log (#33042)
issue: #32963 Signed-off-by: chyezh <chyezh@outlook.com>pull/33068/head
parent
861977ab60
commit
96489b814d
|
@ -473,7 +473,6 @@ func (s *LocalSegment) InsertCount() int64 {
|
||||||
func (s *LocalSegment) RowNum() int64 {
|
func (s *LocalSegment) RowNum() int64 {
|
||||||
// if segment is not loaded, return 0 (maybe not loaded or release by lru)
|
// if segment is not loaded, return 0 (maybe not loaded or release by lru)
|
||||||
if !s.ptrLock.RLockIf(state.IsDataLoaded) {
|
if !s.ptrLock.RLockIf(state.IsDataLoaded) {
|
||||||
log.Warn("segment is not valid", zap.Int64("segmentID", s.ID()))
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
defer s.ptrLock.RUnlock()
|
defer s.ptrLock.RUnlock()
|
||||||
|
|
Loading…
Reference in New Issue