PSYNC
Since 1.1.0ServerChanged in 1.2.1
Syntax
PSYNC repl_id offsetHistory
- 1.2.1: acl categories: removed server
Sent by a replica to its master to start or resume replication: PSYNC replication-id offset. The master either continues from that offset, or sends a full copy of the dataset first. Not for applications.
In a cluster, a master that came back without its data answers +LOSTDATA <node id> to a replica that says it understands it (1.1.3 and later), so that a replica holding the data takes over rather than copy the empty dataset: see Cluster. A replica answers PSYNC with an error, since KiviDB does not chain replicas.