Skip to content
Snippets Groups Projects
Commit f0892e5e authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Konstantin Osipov
Browse files

relay: send heartbeat on subscribe if replica is uptodate

Currently, a realy sends a heartbeat message to the replica only if
there was no WAL events for 'replication_timeout' seconds. As a result,
a replica that happens to be uptodate on subscribe will not update the
lag until the timeout passes, which may delay configuration. Let's make
relay send a heartbeat message right after subscribe in case the replica
is uptodate.
parent 85310417
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment