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

Function serverKeysValue

fdbclient/SystemData.cpp:466–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466const Value serverKeysValue(const UID& id) {
467 if (!id.isValid()) {
468 return serverKeysFalse;
469 }
470
471 BinaryWriter wr(IncludeVersion(ProtocolVersion::withShardEncodeLocationMetaData()));
472 wr << id;
473 return wr.toValue();
474}
475
476void decodeServerKeysValue(const ValueRef& value, bool& assigned, bool& emptyRange, UID& id) {
477 if (value.size() == 0) {

Callers 5

finishMoveShardsFunction · 0.85
MoveKeys.actor.cppFile · 0.85
seedShardServersFunction · 0.85

Calls 3

IncludeVersionFunction · 0.85
isValidMethod · 0.45
toValueMethod · 0.45

Tested by

no test coverage detected