Skip to content

Commit

Permalink
Update src/replication.c
Browse files Browse the repository at this point in the history
update slaves_waitlng_psync documentation

Co-authored-by: Oran Agra <[email protected]>
  • Loading branch information
naglera and oranagra authored Feb 25, 2024
1 parent f668d29 commit 98f0b9c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,10 @@ void rebaseReplicationBuffer(long long base_repl_offset) {
/* Replication: Master side - connection peering.
* On rdb-channel sync, connection peering is used to keep replication data in
* the backlog until the replica requests PSYNC. Peering happens in two forms,
* if there's an existing backlog at the fork time, the replica is attached to
* the tail, if there is no backlog, the replica will be attached when the
* backlog is created. Replica listening ip and port is used as a unique key
* if there's an existing buffer block at the fork time, the replica is attached
* to the tail, if there is no tail, the replica will be attached when a new
* buffer block is created (see the Retrospect function below).
* Replica listening IP and port is used as a unique key
* for the peering. On COB overrun, peering is deleted and the RDB connection
* is dropped.
*/
Expand Down

0 comments on commit 98f0b9c

Please sign in to comment.