diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2020-03-06 13:15:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-06 13:15:10 +0100 |
commit | 13707f988b8095914ca95ac6a836dad1573ea5bd (patch) | |
tree | 53f17366749d44d2ef16aa88143253736590d89c | |
parent | af347a8c86ed3dd381cf41e74d19039d0f6095cf (diff) | |
parent | dfb598cf3304818e608ceb6b5d9529a293345c4a (diff) | |
download | redis-13707f988b8095914ca95ac6a836dad1573ea5bd.tar.gz |
Merge pull request #6687 from jtru/systemd-integration-fixes
Signal systemd readiness atfer Partial Resync
-rw-r--r-- | src/replication.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/replication.c b/src/replication.c index c497051c8..8a42c73ea 100644 --- a/src/replication.c +++ b/src/replication.c @@ -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; } |