Better MONITOR output, now includes client ip:port or the lua string if the command was executed by the scripting engine.

This commit is contained in:
antirez
2012-03-07 12:12:15 +01:00
parent 7b845b6228
commit e31b615e62
3 changed files with 11 additions and 5 deletions

View File

@ -1248,7 +1248,7 @@ void call(redisClient *c, int flags) {
/* Sent the command to clients in MONITOR mode, only if the commands are
* not geneated from reading an AOF. */
if (listLength(server.monitors) && !server.loading)
replicationFeedMonitors(server.monitors,c->db->id,c->argv,c->argc);
replicationFeedMonitors(c,server.monitors,c->db->id,c->argv,c->argc);
/* Call the command. */
redisOpArrayInit(&server.also_propagate);