Rename var to fixed_time_expire now that is more general.

This commit is contained in:
antirez
2019-11-19 11:28:04 +01:00
parent b42466b925
commit ce03d68332
4 changed files with 7 additions and 8 deletions

View File

@ -2788,7 +2788,7 @@ void initServer(void) {
server.hz = server.config_hz;
server.pid = getpid();
server.current_client = NULL;
server.call_depth = 0;
server.fixed_time_expire = 0;
server.clients = listCreate();
server.clients_index = raxNew();
server.clients_to_close = listCreate();
@ -3262,7 +3262,7 @@ void call(client *c, int flags) {
int client_old_flags = c->flags;
struct redisCommand *real_cmd = c->cmd;
server.call_depth++;
server.fixed_time_expire++;
/* Sent the command to clients in MONITOR mode, only if the commands are
* not generated from reading an AOF. */
@ -3389,7 +3389,7 @@ void call(client *c, int flags) {
trackingRememberKeys(caller);
}
server.call_depth--;
server.fixed_time_expire--;
server.stat_numcommands++;
}