mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix panic while flushing dropped/compacted segment (#27927)
Signed-off-by: yah01 <yah2er0ne@outlook.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user