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

Function checkpointKeyFor

fdbclient/SystemData.cpp:294–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292const KeyRef checkpointPrefix = "\xff/checkpoint/"_sr;
293
294const Key checkpointKeyFor(UID checkpointID) {
295 BinaryWriter wr(Unversioned());
296 wr.serializeBytes(checkpointPrefix);
297 wr << checkpointID;
298 return wr.toValue();
299}
300
301const Value checkpointValue(const CheckpointMetaData& checkpoint) {
302 return ObjectWriter::toValue(checkpoint, IncludeVersion());

Callers 1

createCheckpointImplFunction · 0.85

Calls 3

UnversionedFunction · 0.85
serializeBytesMethod · 0.45
toValueMethod · 0.45

Tested by

no test coverage detected