fdbserver/ClusterController.actor.cpp
// Whether the transaction system (in primary DC if in HA setting) contains degraded servers.
Whether the transaction system (in primary DC if in HA setting) contains degraded servers.
Whether the transaction system ( in primary DC if in HA setting ) contains degraded servers .
bool transactionSystemContainsDegradedServers() {
		const ServerDBInfo dbi = db.serverInfo->get();
		for (const auto& excludedServer : degradedServers) {
			if (dbi.master.addresses().contains(excludedServer)) {
				return true;
			}
			for (auto& logSet : dbi.logSystemConfig.tLogs) {
				if (!logSet.isLocal || logSet.locality == tagLocalitySatellite) {
					continue;
				}
				for (const auto& tlog : logSet.tLogs) {
					if (tlog.present() && tlog.interf().addresses().contains(excludedServer)) {
						return true;
					}
				}
			}
			for (auto& proxy : dbi.client.grvProxies) {
				if (proxy.addresses().contains(excludedServer)) {
					return true;
				}
			}
			for (auto& proxy : dbi.client.commitProxies) {
				if (proxy.addresses().contains(excludedServer)) {
					return true;
				}
			}
			for (auto& resolver : dbi.resolvers) {
				if (resolver.addresses().contains(excludedServer)) {
					return true;
				}
			}
		}
		return false;
	}
bool transactionSystemContainsDegradedServers ( ) { const ServerDBInfo dbi = db . serverInfo -> get ( ) ; for ( const auto & excludedServer : degradedServers ) { if ( dbi . master . addresses ( ) . contains ( excludedServer ) ) { return true ; } for ( auto & logSet : dbi . logSystemConfig . tLogs ) { if ( ! logSet . isLocal || logSet . locality == tagLocalitySatellite ) { continue ; } for ( const auto & tlog : logSet . tLogs ) { if ( tlog . present ( ) && tlog . interf ( ) . addresses ( ) . contains ( excludedServer ) ) { return true ; } } } for ( auto & proxy : dbi . client . grvProxies ) { if ( proxy . addresses ( ) . contains ( excludedServer ) ) { return true ; } } for ( auto & proxy : dbi . client . commitProxies ) { if ( proxy . addresses ( ) . contains ( excludedServer ) ) { return true ; } } for ( auto & resolver : dbi . resolvers ) { if ( resolver . addresses ( ) . contains ( excludedServer ) ) { return true ; } } } return false ; }
Whether the transaction system (in primary DC if in HA setting) contains degraded servers.
Whether the transaction system ( in primary DC if in HA setting ) contains degraded servers .