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

Function tssQuarantineKeyFor

fdbclient/SystemData.cpp:550–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548const KeyRangeRef tssQuarantineKeys(LiteralStringRef("\xff/tssQ/"), LiteralStringRef("\xff/tssQ0"));
549
550const Key tssQuarantineKeyFor(UID serverID) {
551 BinaryWriter wr(Unversioned());
552 wr.serializeBytes(tssQuarantineKeys.begin);
553 wr << serverID;
554 return wr.toValue();
555}
556
557UID decodeTssQuarantineKey(KeyRef const& key) {
558 UID serverID;

Calls 3

UnversionedFunction · 0.85
serializeBytesMethod · 0.45
toValueMethod · 0.45

Tested by

no test coverage detected