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

Function versionedMutationKey

fdbserver/ConfigNode.actor.cpp:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52Key versionedMutationKey(Version version, uint32_t index) {
53 ASSERT_GE(version, 0);
54 BinaryWriter bw(IncludeVersion());
55 bw << bigEndian64(version);
56 bw << bigEndian32(index);
57 return bw.toValue().withPrefix(mutationKeys.begin);
58}
59
60Version getVersionFromVersionedMutationKey(KeyRef versionedMutationKey) {
61 uint64_t bigEndianResult;

Callers 5

getMutationsMethod · 0.85
commitMutationsMethod · 0.85
compactMethod · 0.85
rollforwardMethod · 0.85

Calls 3

IncludeVersionFunction · 0.85
withPrefixMethod · 0.45
toValueMethod · 0.45

Tested by

no test coverage detected