Merge pull request #6687 from jtru/systemd-integration-fixes

Signal systemd readiness atfer Partial Resync
This commit is contained in:
Salvatore Sanfilippo 2020-03-06 13:15:10 +01:00 committed by GitHub
commit 3b68a38464

View File

@ -2182,6 +2182,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;
} }