MCPcopy Create free account
hub / github.com/F-Stack/f-stack / getPsyncInitialOffset

Function getPsyncInitialOffset

app/redis-6.2.6/src/replication.c:475–477  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

473 * the BGSAVE process started and before executing any other command
474 * from clients. */
475long 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:

Callers 2

rdbSaveToSlavesSocketsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected