diff options
| author | kjnilsson <knilsson@pivotal.io> | 2019-06-24 11:15:16 +0100 |
|---|---|---|
| committer | kjnilsson <knilsson@pivotal.io> | 2019-06-24 11:15:16 +0100 |
| commit | 4e0211db31e04330960b19903b1b23c2507f52b5 (patch) | |
| tree | 2c7a33ba93aa538d329bdf3fd639d26a37bff3ce /src/rabbit.erl | |
| parent | ccf2604e6b3168ef705d2205496377036ad0344e (diff) | |
| download | rabbitmq-server-git-4e0211db31e04330960b19903b1b23c2507f52b5.tar.gz | |
Set ra wal_max_size_bytes default if not set
To match it in unit with the rest of rabbit.
Diffstat (limited to 'src/rabbit.erl')
| -rw-r--r-- | src/rabbit.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 4a974fd682..d65c4ef24b 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -539,6 +539,12 @@ start_loaded_apps(Apps, RestartTypes) -> application:set_env(ra, logger_module, rabbit_log_ra_shim), %% use a larger segments size for queues application:set_env(ra, segment_max_entries, 32768), + case application:get_env(ra, wal_max_size_bytes) of + undefined -> + application:set_env(ra, wal_max_size_bytes, 536870912); %% 5 * 2 ^ 20 + _ -> + ok + end, ConfigEntryDecoder = case application:get_env(rabbit, config_entry_decoder) of undefined -> []; |
