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

Method canReplace

fdbclient/MultiVersionTransaction.actor.cpp:2950–2960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2948}
2949
2950bool ClientInfo::canReplace(Reference<ClientInfo> other) const {
2951 if (protocolVersion > other->protocolVersion) {
2952 return true;
2953 }
2954
2955 if (protocolVersion == other->protocolVersion && !external) {
2956 return true;
2957 }
2958
2959 return !protocolVersion.isCompatible(other->protocolVersion);
2960}
2961
2962// UNIT TESTS
2963TEST_CASE("/fdbclient/multiversionclient/EnvironmentVariableParsing") {

Callers 1

addClientMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected