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

Function getVersionFromVersionedMutationKey

fdbserver/ConfigNode.actor.cpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60Version getVersionFromVersionedMutationKey(KeyRef versionedMutationKey) {
61 uint64_t bigEndianResult;
62 ASSERT(versionedMutationKey.startsWith(mutationKeys.begin));
63 BinaryReader br(versionedMutationKey.removePrefix(mutationKeys.begin), IncludeVersion());
64 br >> bigEndianResult;
65 return fromBigEndian64(bigEndianResult);
66}
67
68template <typename T>
69void assertCommitted(RangeResult const& range, VectorRef<T> versionedConfigs, std::function<Version(KeyRef)> fn) {

Callers 2

getMutationsMethod · 0.85

Calls 3

IncludeVersionFunction · 0.85
startsWithMethod · 0.45
removePrefixMethod · 0.45

Tested by

no test coverage detected