Skip to content

Commit 24b6f8a

Browse files
authored
Merge pull request #208 from rabbitmq/md/remove-debug-if
osiris_log: Remove debug log about trailing data
2 parents 2c92e61 + 240f2bf commit 24b6f8a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/osiris_log.erl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,12 +2123,6 @@ build_segment_info(SegFile, LastChunkPos, IdxFile) ->
21232123
_Reserved:24>>} ->
21242124
LastChunkSize = LastFSize + LastSize + LastTSize,
21252125
Size = LastChunkPos + ?HEADER_SIZE_B + LastChunkSize,
2126-
%% TODO: this file:position/2 all has no actual function and
2127-
%% is only used to emit a debug log. Remove?
2128-
{ok, Eof} = file:position(Fd, eof),
2129-
?DEBUG_IF("~s: segment ~ts has trailing data ~w ~w",
2130-
[?MODULE, filename:basename(SegFile),
2131-
Size, Eof], Size =/= Eof),
21322126
_ = file:close(Fd),
21332127
FstChInfo = #chunk_info{epoch = FirstEpoch,
21342128
timestamp = FirstTs,

0 commit comments

Comments
 (0)