]> git.saurik.com Git - redis.git/commitdiff
Purely aesthetic code change.
authorantirez <antirez@gmail.com>
Fri, 30 Mar 2012 08:39:34 +0000 (10:39 +0200)
committerantirez <antirez@gmail.com>
Fri, 30 Mar 2012 08:40:04 +0000 (10:40 +0200)
src/replication.c

index f474d98253721008983b21dcd97453d08c5d7dd0..a6356a07f75cf18557fb1fd49c92eae606844e27 100644 (file)
@@ -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));