mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Hopefully more clear comment to explain the change in #4607.
This commit is contained in:
parent
0cc43760d7
commit
b23927b240
@ -1971,9 +1971,10 @@ void replicationUnsetMaster(void) {
|
|||||||
* master switch. */
|
* master switch. */
|
||||||
server.slaveseldb = -1;
|
server.slaveseldb = -1;
|
||||||
|
|
||||||
/* We need to remember the time when we became a master and lost all
|
/* Once we turn from slave to master, we consider the starting time without
|
||||||
* attached slaves (if we had any), as after some time we'll free the
|
* slaves (that is used to count the replication backlog time to live) as
|
||||||
* replication backlog. */
|
* starting from now. Otherwise the backlog will be freed after a
|
||||||
|
* failover if slaves do not connect immediately. */
|
||||||
server.repl_no_slaves_since = server.unixtime;
|
server.repl_no_slaves_since = server.unixtime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user