MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / canFeedReplicaReplBuffer

Function canFeedReplicaReplBuffer

src/replication.cpp:547–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547int canFeedReplicaReplBuffer(client *replica) {
548 /* Don't feed replicas that only want the RDB. */
549 if (replica->flags & CLIENT_REPL_RDBONLY) return 0;
550
551 /* Don't feed replicas that are still waiting for BGSAVE to start. */
552 if (replica->replstate == SLAVE_STATE_WAIT_BGSAVE_START) return 0;
553
554 return 1;
555}
556
557/* Propagate write commands to slaves, and populate the replication backlog
558 * as well. This function is used if the instance is a master: we use

Callers 2

feedReplicationBacklogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected