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

Method addReplica

src/replication.cpp:1019–1022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1017 }
1018
1019 void addReplica(client *replica) {
1020 replicas.push_back(replica);
1021 replicationSetupSlaveForFullResync(replica,getPsyncInitialOffset());
1022 }
1023
1024 bool isActive() const { return !replicas.empty(); }
1025

Callers 1

Calls 2

getPsyncInitialOffsetFunction · 0.85

Tested by

no test coverage detected