Tag every log line with role.

Every log contains, just after the pid, a single character that provides
information about the role of an instance:

S - Slave
M - Master
C - Writing child
X - Sentinel
This commit is contained in:
antirez
2014-05-22 18:48:37 +02:00
parent 33f63ff988
commit 9996c37e74
2 changed files with 13 additions and 1 deletions

View File

@ -619,6 +619,7 @@ struct clusterState;
struct redisServer {
/* General */
pid_t pid; /* Main process pid. */
char *configfile; /* Absolute config file path, or NULL */
int hz; /* serverCron() calls frequency in hertz */
redisDb *db;