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

Method selectApiVersion

fdbclient/MultiVersionTransaction.actor.cpp:953–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

951}
952
953void DLApi::selectApiVersion(int apiVersion) {
954 // External clients must support at least this version
955 // Versions newer than what we understand are rejected in the C bindings
956 headerVersion = std::max(apiVersion, 400);
957
958 init();
959 throwIfError(api->selectApiVersion(apiVersion, headerVersion));
960 throwIfError(api->setNetworkOption(static_cast<FDBNetworkOption>(FDBNetworkOptions::EXTERNAL_CLIENT), nullptr, 0));
961}
962
963const char* DLApi::getClientVersion() {
964 if (!api->getClientVersion) {

Callers 1

setupNetworkMethod · 0.45

Calls 5

getLocalClientAPIFunction · 0.85
throwIfErrorFunction · 0.70
initFunction · 0.50
setNetworkOptionMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected