Skip to content

Commit

Permalink
avoid panic when closing segmentsRotx (#11956)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemilk authored Sep 11, 2024
1 parent 73ef0d2 commit fa4bb2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbo/snapshotsync/freezeblocks/block_snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ func (s *segments) BeginRotx() *segmentsRotx {
}

func (s *segmentsRotx) Close() {
if s.VisibleSegments == nil {
if s == nil || s.VisibleSegments == nil {
return
}
VisibleSegments := s.VisibleSegments
Expand Down

0 comments on commit fa4bb2c

Please sign in to comment.