mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Cluster: data_age conversion to milliseconds fixed.
This commit is contained in:
parent
573c2fea91
commit
1447d28c0f
@ -1629,9 +1629,9 @@ void clusterHandleSlaveFailover(void) {
|
||||
|
||||
/* Set data_age to the number of seconds we are disconnected from the master. */
|
||||
if (server.repl_state == REDIS_REPL_CONNECTED) {
|
||||
data_age = server.unixtime - server.master->lastinteraction * 1000;
|
||||
data_age = (server.unixtime - server.master->lastinteraction) * 1000;
|
||||
} else {
|
||||
data_age = server.unixtime - server.repl_down_since * 1000;
|
||||
data_age = (server.unixtime - server.repl_down_since) * 1000;
|
||||
}
|
||||
|
||||
/* Pre conditions to run the function:
|
||||
|
Loading…
x
Reference in New Issue
Block a user