mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 08:41:21 +00:00
command lookup process turned into a much more flexible and probably faster hash table
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user