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

Function versionedAnnotationKey

fdbserver/ConfigNode.actor.cpp:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40const KeyRangeRef annotationKeys = KeyRangeRef("annotation/"_sr, "annotation0"_sr);
41
42Key versionedAnnotationKey(Version version) {
43 ASSERT_GE(version, 0);
44 return BinaryWriter::toValue(bigEndian64(version), IncludeVersion()).withPrefix(annotationKeys.begin);
45}
46
47Version getVersionFromVersionedAnnotationKey(KeyRef versionedAnnotationKey) {
48 return fromBigEndian64(BinaryReader::fromStringRef<uint64_t>(

Callers 4

getAnnotationsMethod · 0.85
commitMutationsMethod · 0.85
compactMethod · 0.85
rollforwardMethod · 0.85

Calls 2

IncludeVersionFunction · 0.85
withPrefixMethod · 0.45

Tested by

no test coverage detected