We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a9690a commit f73a0d6Copy full SHA for f73a0d6
src/osiris_log.erl
@@ -3608,14 +3608,10 @@ scan_one_index_file(IdxFile) ->
3608
{ok, Fd} ->
3609
try
3610
{ok, _} = file:position(Fd, ?IDX_HEADER_SIZE),
3611
- case scan_index_records(Fd, []) of
3612
- {ok, ChunksWithPos} ->
3613
- SegFile = segment_from_index_file(IdxFile),
3614
- Fixed = fix_timestamps_from_segment(SegFile, ChunksWithPos),
3615
- {ok, Fixed};
3616
- Err ->
3617
- Err
3618
- end
+ {ok, ChunksWithPos} = scan_index_records(Fd, []),
+ SegFile = segment_from_index_file(IdxFile),
+ Fixed = fix_timestamps_from_segment(SegFile, ChunksWithPos),
+ {ok, Fixed}
3619
after
3620
_ = file:close(Fd)
3621
end;
0 commit comments