mirror of https://github.com/milvus-io/milvus.git
parent
fdac1b4e4a
commit
a55019825b
|
@ -426,7 +426,9 @@ func (s *Server) startDataNodeTtLoop(ctx context.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
staleSegments := s.meta.SelectSegments(func(info *SegmentInfo) bool {
|
staleSegments := s.meta.SelectSegments(func(info *SegmentInfo) bool {
|
||||||
return !info.lastFlushTime.IsZero() && time.Since(info.lastFlushTime).Minutes() >= segmentTimedFlushDuration
|
return info.GetInsertChannel() == ch &&
|
||||||
|
!info.lastFlushTime.IsZero() &&
|
||||||
|
time.Since(info.lastFlushTime).Minutes() >= segmentTimedFlushDuration
|
||||||
})
|
})
|
||||||
|
|
||||||
if len(segments)+len(staleSegments) == 0 {
|
if len(segments)+len(staleSegments) == 0 {
|
||||||
|
|
Loading…
Reference in New Issue