summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2015-05-25 12:06:25 +0200
committerSalvatore Sanfilippo <antirez@gmail.com>2015-05-25 12:06:25 +0200
commit4082c38a60eedd524c78ef48c1b241105f4ddc50 (patch)
treec5738d34f50a4fea7ced4cc220cbb86bf3758844
parent20700fe566938d5bea945f739dbb5ab73131febb (diff)
parent4e8ccbe7eac053011a281760e570ba29c4dfb905 (diff)
downloadredis-4082c38a60eedd524c78ef48c1b241105f4ddc50.tar.gz
Merge pull request #2571 from therealbill/sentinel-flushconfig-command
adding a sentinel command: "flushconfig" per RCP4
-rw-r--r--src/sentinel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index 9c9e5fe4d..c7e7f672d 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -3022,6 +3022,10 @@ void sentinelCommand(redisClient *c) {
sentinelEvent(REDIS_WARNING,"+monitor",ri,"%@ quorum %d",ri->quorum);
addReply(c,shared.ok);
}
+ } else if (!strcasecmp(c->argv[1]->ptr,"flushconfig")) {
+ sentinelFlushConfig();
+ addReply(c,shared.ok);
+ return;
} else if (!strcasecmp(c->argv[1]->ptr,"remove")) {
/* SENTINEL REMOVE <name> */
sentinelRedisInstance *ri;