| 2948 | } |
| 2949 | |
| 2950 | bool 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 |
| 2963 | TEST_CASE("/fdbclient/multiversionclient/EnvironmentVariableParsing") { |