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

Function getLatestCommitVersion

fdbserver/storageserver.actor.cpp:1728–1732  ·  view source on GitHub ↗

Find the latest commit version of the given tag.

Source from the content-addressed store, hash-verified

1726
1727// Find the latest commit version of the given tag.
1728Version getLatestCommitVersion(VersionVector& ssLatestCommitVersions, Tag& tag) {
1729 Version commitVersion =
1730 ssLatestCommitVersions.hasVersion(tag) ? ssLatestCommitVersions.getVersion(tag) : invalidVersion;
1731 return commitVersion;
1732}
1733
1734Future<Version> waitForVersion(StorageServer* data, Version version, SpanContext spanContext) {
1735 if (version == latestVersion) {

Callers 5

Future<Void> getValueQFunction · 0.85
Future<Void> getKeyQFunction · 0.85

Calls 2

hasVersionMethod · 0.80
getVersionMethod · 0.45

Tested by

no test coverage detected