Return the offset to provide as reply to the PSYNC command received * from the replica. The returned value is only valid immediately after * the BGSAVE process started and before executing any other command * from clients. */
| 839 | * the BGSAVE process started and before executing any other command |
| 840 | * from clients. */ |
| 841 | long long getPsyncInitialOffset(void) { |
| 842 | return g_pserver->master_repl_offset; |
| 843 | } |
| 844 | |
| 845 | /* Send a FULLRESYNC reply in the specific case of a full resynchronization, |
| 846 | * as a side effect setup the replica for a full sync in different ways: |
no outgoing calls
no test coverage detected