summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Ponce <fponce@toasttab.com>2017-06-07 10:56:39 -0400
committerFabian Ponce <fponce@toasttab.com>2017-06-07 11:15:09 -0400
commit7cd2ca4fcd72e472bf582b45aa9380795aa28d94 (patch)
tree46abfae3980275d54e3b5c63132fc69fbba416a4
parent915475013ecf5e3ed7f8ec53b77a75cb9b7514a1 (diff)
downloadrabbitmq-server-git-7cd2ca4fcd72e472bf582b45aa9380795aa28d94.tar.gz
Modify the documentation and background_gc.erl default value for background_gc_enabled to false to match the behavior of the Makefile.
-rw-r--r--docs/rabbitmq.config.example2
-rw-r--r--src/background_gc.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/rabbitmq.config.example b/docs/rabbitmq.config.example
index 3eee836572..7acd6a4d5f 100644
--- a/docs/rabbitmq.config.example
+++ b/docs/rabbitmq.config.example
@@ -325,7 +325,7 @@
%% Whether or not to enable background GC.
%%
- %% {background_gc_enabled, true},
+ %% {background_gc_enabled, false},
%%
%% Interval (in milliseconds) at which we run background GC.
%%
diff --git a/src/background_gc.erl b/src/background_gc.erl
index 2ae9d93e4e..bbac3138cf 100644
--- a/src/background_gc.erl
+++ b/src/background_gc.erl
@@ -74,7 +74,7 @@ interval_gc(State = #state{last_interval = LastInterval}) ->
State#state{last_interval = Interval}.
gc() ->
- Enabled = rabbit_misc:get_env(rabbit, background_gc_enabled, true),
+ Enabled = rabbit_misc:get_env(rabbit, background_gc_enabled, false),
case Enabled of
true ->
[garbage_collect(P) || P <- processes(),