summaryrefslogtreecommitdiff
path: root/src/db.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-11-05 17:23:11 +0100
committerantirez <antirez@gmail.com>2013-11-06 11:13:27 +0100
commit671c1dfb5629e32f3addfe865e5e5a04f35b007d (patch)
treedf13280d76385bfa621074c6b261c9094f64cf1e /src/db.c
parentebcb6251e6311622edb7dc1100a9c7cadb8842e8 (diff)
downloadredis-671c1dfb5629e32f3addfe865e5e5a04f35b007d.tar.gz
Sentinel: always send CONFIG REWRITE when changing instance role.
This change makes Sentinel less fragile about a number of failure modes. This commit also fixes a different bug as a side effect, SLAVEOF command was sent multiple times without incrementing the pending commands count.
Diffstat (limited to 'src/db.c')
-rw-r--r--src/db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.c b/src/db.c
index 8d538662e..1bdcf9e83 100644
--- a/src/db.c
+++ b/src/db.c
@@ -350,7 +350,7 @@ void scanCallback(void *privdata, const dictEntry *de) {
if (val) listAddNodeTail(keys, val);
}
-/* Try to parse a SCAN cursor stored ad object 'o':
+/* Try to parse a SCAN cursor stored at object 'o':
* if the cursor is valid, store it as unsigned integer into *cursor and
* returns REDIS_OK. Otherwise return REDIS_ERR and send an error to the
* client. */