| 2404 | } |
| 2405 | |
| 2406 | void 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 | |
| 2423 | void MultiVersionApi::setNetworkOption(FDBNetworkOptions::Option option, Optional<StringRef> value) { |
| 2424 | if (option != FDBNetworkOptions::EXTERNAL_CLIENT && |
nothing calls this directly
no test coverage detected