Skip to content

Commit

Permalink
Merge pull request #376 from rabbitmq/segment-writer-counter-fix
Browse files Browse the repository at this point in the history
Use the correct counter name for segment writer.
  • Loading branch information
kjnilsson committed May 18, 2023
2 parents cf813d4 + 61f2d0c commit 767ea49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ra_log_segment_writer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ await(SegWriter) ->
%%%===================================================================

init([#{data_dir := DataDir,
name := SegWriterName,
system := System} = Conf]) ->
process_flag(trap_exit, true),
CRef = ra_counters:new(?MODULE, ?COUNTER_FIELDS),
CRef = ra_counters:new(SegWriterName, ?COUNTER_FIELDS),
SegmentConf = maps:get(segment_conf, Conf, #{}),
{ok, #state{system = System,
data_dir = DataDir,
Expand Down

0 comments on commit 767ea49

Please sign in to comment.