Skip to content

Commit dc42d42

Browse files
Jose-Angel Herrero Bajofacebook-github-bot
authored andcommitted
Don't garbage collect on every iteration of wa_raft_log_catchup
Summary: as title Reviewed By: aravindanilango Differential Revision: D74931248 Privacy Context Container: L1141030 fbshipit-source-id: 29e99510997592b9df71efe56ca171e5432d69e5
1 parent 7f4bbb6 commit dc42d42

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/wa_raft_log_catchup.erl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ handle_info(timeout, #state{name = Name} = State) ->
208208
% Select a random log catchup request to process.
209209
?CATCHUP_REQUEST(Peer, FollowerLastIndex, LeaderTerm, LeaderCommitIndex) = lists:nth(rand:uniform(length(Requests)), Requests),
210210
NewState = send_logs(Peer, FollowerLastIndex, LeaderTerm, LeaderCommitIndex, State),
211-
% elp:ignore W0047 (no_garbage_collect)
212-
erlang:garbage_collect(),
213211
{noreply, NewState, ?CONTINUE_TIMEOUT}
214212
end;
215213
handle_info(Info, #state{name = Name} = State) ->

0 commit comments

Comments
 (0)