Unified · Split
| @@ -641,7 +641,7 @@ func (l *Log) loadSegment(index uint64) (*segment, error) { · 640 unmodified lines | ||
| 641 | 641 | if index >= s.index && index < s.index+uint64(len(s.epos)) { |
| 642 | 642 | rseg = s |
| 643 | 643 | } |
| 644 | − return false | |
| 644 | + return true | |
| 645 | 645 | }) |
| 646 | 646 | if rseg != nil { |
| 647 | 647 | return rseg, nil |