设为首页 加入收藏

TOP

Mongodb源码分析(二)
2014-11-23 22:08:22 来源: 作者: 【 】 浏览:4
Tags:Mongodb 源码 分析
) << "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() );

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇#pragma once和ifndef使用异同 下一篇我也要学C语言-第十五章:指针与..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: