MCPcopy Create free account
hub / github.com/apple/foundationdb / datacenterReplicasKeyFor

Function datacenterReplicasKeyFor

fdbclient/SystemData.cpp:697–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695const KeyRef datacenterReplicasPrefix = datacenterReplicasKeys.begin;
696
697const Key datacenterReplicasKeyFor(Optional<Value> dcID) {
698 BinaryWriter wr(AssumeVersion(currentProtocolVersion()));
699 wr.serializeBytes(datacenterReplicasKeys.begin);
700 wr << dcID;
701 return wr.toValue();
702}
703
704const Value datacenterReplicasValue(int const& replicas) {
705 BinaryWriter wr(IncludeVersion(ProtocolVersion::withDatacenterReplicasValue()));

Calls 4

AssumeVersionFunction · 0.85
currentProtocolVersionFunction · 0.85
serializeBytesMethod · 0.45
toValueMethod · 0.45

Tested by

no test coverage detected