Merge pull request #2571 from therealbill/sentinel-flushconfig-command

adding a sentinel command: "flushconfig" per RCP4
This commit is contained in:
Salvatore Sanfilippo 2015-05-25 12:06:25 +02:00
commit 4082c38a60

View File

@ -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;