summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-05-24 18:04:17 +0200
committerantirez <antirez@gmail.com>2018-05-24 18:04:21 +0200
commit98d5d3f118eebb1d1e86625ab0ff808d019456bb (patch)
treeb1303aace340e3b1e7d0e51717a7934cdf936529 /src/config.c
parentfef42d098508e9ee16a2059252a39b0ce7a87adf (diff)
downloadredis-98d5d3f118eebb1d1e86625ab0ff808d019456bb.tar.gz
Make active defragmentation tests optional.
They failed when active defrag could not be activated because the Jemalloc version does not include the additional APIs.
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index a1122d059..5bc6aa2ed 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1031,9 +1031,10 @@ void configSetCommand(client *c) {
if (server.active_defrag_enabled) {
server.active_defrag_enabled = 0;
addReplyError(c,
- "Active defragmentation cannot be enabled: it requires a "
- "Redis server compiled with a modified Jemalloc like the "
- "one shipped by default with the Redis source distribution");
+ "-DISABLED Active defragmentation cannot be enabled: it "
+ "requires a Redis server compiled with a modified Jemalloc "
+ "like the one shipped by default with the Redis source "
+ "distribution");
return;
}
#endif