X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/ae15f75089117c3e65a7de85266a97c3011caf78..5ddee9b7d5885ae5650484bc55d89d7de54ee3a8:/src/replication.c diff --git a/src/replication.c b/src/replication.c index f474d982..72b88977 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