Signal systemd readiness atfer Partial Resync
"Partial Resynchronization" is a special variant of replication success that we have to tell systemd about if it is managing redis-server via a Type=Notify service unit. Former-commit-id: dd9502f373eb7e32aee69a30dcb521bea3ccd3ad
This commit is contained in:
parent
234e6e7b09
commit
1a078be843
@ -2584,6 +2584,10 @@ void syncWithMaster(connection *conn) {
|
|||||||
|
|
||||||
if (psync_result == PSYNC_CONTINUE) {
|
if (psync_result == PSYNC_CONTINUE) {
|
||||||
serverLog(LL_NOTICE, "MASTER <-> REPLICA sync: Master accepted a Partial Resynchronization.");
|
serverLog(LL_NOTICE, "MASTER <-> REPLICA sync: Master accepted a Partial Resynchronization.");
|
||||||
|
if (server.supervised_mode == SUPERVISED_SYSTEMD) {
|
||||||
|
redisCommunicateSystemd("STATUS=MASTER <-> REPLICA sync: Partial Resynchronization accepted. Ready to accept connections.\n");
|
||||||
|
redisCommunicateSystemd("READY=1\n");
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user