mirror of https://github.com/milvus-io/milvus.git
Fix panic while flushing dropped/compacted segment (#27927)
Signed-off-by: yah01 <yah2er0ne@outlook.com>pull/27929/head
parent
8ab01e5a14
commit
f79c7370f4
|
@ -103,7 +103,7 @@ func (s *Segment) setReleased(b bool) {
|
|||
}
|
||||
|
||||
func (s *Segment) isValid() bool {
|
||||
return s.getType() != datapb.SegmentType_Compacted
|
||||
return s != nil && s.getType() != datapb.SegmentType_Compacted
|
||||
}
|
||||
|
||||
func (s *Segment) notFlushed() bool {
|
||||
|
|
Loading…
Reference in New Issue