summaryrefslogtreecommitdiff
path: root/src/sentinel.c
diff options
context:
space:
mode:
authorBinbin <binloveplay1314@qq.com>2022-02-04 17:39:51 +0800
committerGitHub <noreply@github.com>2022-02-04 11:39:51 +0200
commitd7fcb3c5a16dce188728b0c2ab3a2a0df9bb5e2a (patch)
treec8f06b54ca27da94c9adf9d3d287f5f16559be6f /src/sentinel.c
parentd2fde2f6557a0c2f2963a0a0fb626510af62f545 (diff)
downloadredis-d7fcb3c5a16dce188728b0c2ab3a2a0df9bb5e2a.tar.gz
Fix SENTINEL SET config rewrite test (#10232)
Change the sentinel config file to a directory in SENTINEL SET test. So it will now fail on the `rename` in `rewriteConfigOverwriteFile`. The test used to set the sentinel config file permissions to `000` to simulate failure. But it fails on centos7 / freebsd / alpine. (introduced in #10151) Other changes: 1. More error messages after the config rewrite failure. 2. Modify arg name `force_all` in `rewriteConfig` to `force_write`. (was rename in #9304) 3. Fix a typo in debug quicklist-packed-threshold, then -> than. (#9357)
Diffstat (limited to 'src/sentinel.c')
-rw-r--r--src/sentinel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index 60cba2e1b..937a5b86f 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -2286,7 +2286,7 @@ werr:
*/
static void sentinelFlushConfigAndReply(client *c) {
if (sentinelFlushConfig() == C_ERR)
- addReplyErrorFormat(c,"Failed to save config file");
+ addReplyError(c, "Failed to save config file. Check server logs.");
else
addReply(c, shared.ok);
}