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 13707f988b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2182,6 +2182,10 @@ void syncWithMaster(connection *conn) {
if (psync_result == PSYNC_CONTINUE) {
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;
}