X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/f892797e1b459ad568df32d891b368302c40b3c9..91c15ed1b51a0cd097e5c8b0d77edb07f460a866:/src/replication.c diff --git a/src/replication.c b/src/replication.c index f474d982..45a223b8 100644 --- a/src/replication.c +++ b/src/replication.c @@ -26,8 +26,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 +145,46 @@ void syncCommand(redisClient *c) { return; } +/* REPLCONF