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

Method setSupportedClientVersions

fdbclient/MultiVersionTransaction.actor.cpp:2406–2421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2404}
2405
2406void MultiVersionApi::setSupportedClientVersions(Standalone<StringRef> versions) {
2407 MutexHolder holder(lock);
2408 ASSERT(networkSetup);
2409
2410 // This option must be set on the main thread because it modifies structures that can be used concurrently by the
2411 // main thread
2412 onMainThreadVoid([this, versions]() {
2413 localClient->api->setNetworkOption(FDBNetworkOptions::SUPPORTED_CLIENT_VERSIONS, versions);
2414 });
2415
2416 if (!bypassMultiClientApi) {
2417 runOnExternalClientsAllThreads([versions](Reference<ClientInfo> client) {
2418 client->api->setNetworkOption(FDBNetworkOptions::SUPPORTED_CLIENT_VERSIONS, versions);
2419 });
2420 }
2421}
2422
2423void MultiVersionApi::setNetworkOption(FDBNetworkOptions::Option option, Optional<StringRef> value) {
2424 if (option != FDBNetworkOptions::EXTERNAL_CLIENT &&

Callers

nothing calls this directly

Calls 2

onMainThreadVoidFunction · 0.85
setNetworkOptionMethod · 0.45

Tested by

no test coverage detected