diff options
author | antirez <antirez@gmail.com> | 2010-11-03 11:23:59 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2010-11-03 11:23:59 +0100 |
commit | 1b1f47c915c69eae40d99727267b147f7c5a44ac (patch) | |
tree | 5fadcc2217c5d8f6232c9d83eb6986c93be11e4a /src/multi.c | |
parent | 297e77c6ab9f65fed7f7ee5baa26310071f6ce9e (diff) | |
download | redis-1b1f47c915c69eae40d99727267b147f7c5a44ac.tar.gz |
command lookup process turned into a much more flexible and probably faster hash table
Diffstat (limited to 'src/multi.c')
-rw-r--r-- | src/multi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/multi.c b/src/multi.c index 47615eb04..59fc9d9e8 100644 --- a/src/multi.c +++ b/src/multi.c @@ -65,12 +65,10 @@ void discardCommand(redisClient *c) { /* Send a MULTI command to all the slaves and AOF file. Check the execCommand * implememntation for more information. */ void execCommandReplicateMulti(redisClient *c) { - struct redisCommand *cmd; robj *multistring = createStringObject("MULTI",5); - cmd = lookupCommand("multi"); if (server.appendonly) - feedAppendOnlyFile(cmd,c->db->id,&multistring,1); + feedAppendOnlyFile(server.multiCommand,c->db->id,&multistring,1); if (listLength(server.slaves)) replicationFeedSlaves(server.slaves,c->db->id,&multistring,1); decrRefCount(multistring); |