) << "need either 1 or 3 configdbs" << endl;
return 5;
}
// we either have a seeting were all process are in localhost or none is
for ( vector::const_iterator it = configdbs.begin() ; it != configdbs.end() ; ++it ) {
try {
// 根据地址参数实例化HostAndPort对象,如地址不合法则抛出异常
HostAndPort configAddr( *it );
if ( it == configdbs.begin() ) {
grid.setAllowLocalHost( configAddr.isLocalHost() );