提交 9c75e1f2 编写于 作者: S Shiyuan Shang-Guan

add CHECK


Former-commit-id: c1ad6792caf7850e445ed91038c8ba3ecfced9e9
上级 576ad833
......@@ -184,8 +184,10 @@ void EpollCommNet::InitSockets() {
// useful log
for (int64_t peer_mchn_id : peer_machine_id()) {
FOR_RANGE(int32_t, link_i, 0, epoll_conf_.link_num()) {
LOG(INFO) << "machine: " << peer_mchn_id << ", link index: " << link_i << ", sockfd: "
<< machine_link_id2sockfds_.at(peer_mchn_id * epoll_conf_.link_num() + link_i);
int32_t sockfd = machine_link_id2sockfds_.at(peer_mchn_id * epoll_conf_.link_num() + link_i);
CHECK_GT(sockfd, 0);
LOG(INFO) << "machine: " << peer_mchn_id << ", link index: " << link_i
<< ", sockfd: " << sockfd;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册