Skip to content

Commit 7cd2ca4

Browse files
committed
Modify the documentation and background_gc.erl default value for background_gc_enabled to false to match the behavior of the Makefile.
1 parent 9154750 commit 7cd2ca4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/rabbitmq.config.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325

326326
%% Whether or not to enable background GC.
327327
%%
328-
%% {background_gc_enabled, true},
328+
%% {background_gc_enabled, false},
329329
%%
330330
%% Interval (in milliseconds) at which we run background GC.
331331
%%

src/background_gc.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ interval_gc(State = #state{last_interval = LastInterval}) ->
7474
State#state{last_interval = Interval}.
7575

7676
gc() ->
77-
Enabled = rabbit_misc:get_env(rabbit, background_gc_enabled, true),
77+
Enabled = rabbit_misc:get_env(rabbit, background_gc_enabled, false),
7878
case Enabled of
7979
true ->
8080
[garbage_collect(P) || P <- processes(),

0 commit comments

Comments
 (0)