X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/f892797e1b459ad568df32d891b368302c40b3c9..d10a01bb6d8645f66b66e1fb3d1c52a0dd7bd8fe:/src/replication.c diff --git a/src/replication.c b/src/replication.c index f474d982..c1e46191 100644 --- a/src/replication.c +++ b/src/replication.c @@ -3,6 +3,7 @@ #include #include #include +#include #include /* ---------------------------------- MASTER -------------------------------- */ @@ -26,8 +27,8 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) { robj *selectcmd; if (dictid >= 0 && dictid < REDIS_SHARED_SELECT_CMDS) { - incrRefCount(shared.select[dictid]); selectcmd = shared.select[dictid]; + incrRefCount(selectcmd); } else { selectcmd = createObject(REDIS_STRING, sdscatprintf(sdsempty(),"select %d\r\n",dictid)); @@ -145,6 +146,46 @@ void syncCommand(redisClient *c) { return; } +/* REPLCONF