Return the offset to provide as reply to the PSYNC command received * from the slave. The returned value is only valid immediately after * the BGSAVE process started and before executing any other command * from clients. */
| 473 | * the BGSAVE process started and before executing any other command |
| 474 | * from clients. */ |
| 475 | long long getPsyncInitialOffset(void) { |
| 476 | return server.master_repl_offset; |
| 477 | } |
| 478 | |
| 479 | /* Send a FULLRESYNC reply in the specific case of a full resynchronization, |
| 480 | * as a side effect setup the slave for a full sync in different ways: |
no outgoing calls
no test coverage detected