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

Method getClusterProtocol

fdbclient/NativeAPI.actor.cpp:7178–7180  ·  view source on GitHub ↗

Returns the protocol version reported by the coordinator this client is currently connected to If an expected version is given, the future won't return until the protocol version is different than expected Note: this will never return if the server is running a protocol from FDB 5.0 or older

Source from the content-addressed store, hash-verified

7176// If an expected version is given, the future won't return until the protocol version is different than expected
7177// Note: this will never return if the server is running a protocol from FDB 5.0 or older
7178Future<ProtocolVersion> DatabaseContext::getClusterProtocol(Optional<ProtocolVersion> expectedVersion) {
7179 return getClusterProtocolImpl(coordinator, expectedVersion);
7180}
7181
7182double ClientTagThrottleData::throttleDuration() const {
7183 if (expiration <= now()) {

Callers 1

getServerProtocolMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected