提交 3cec53aa 编写于 作者: L LINxiansheng 提交者: LINGuanRen

Fix a compile bug about OB net util

上级 c3fce71c
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "observer/ob_server_struct.h" #include "observer/ob_server_struct.h"
#include "storage/ob_file_system_util.h" #include "storage/ob_file_system_util.h"
#include "storage/ob_pg_storage.h" #include "storage/ob_pg_storage.h"
#include "lib/net/ob_net_util.h"
using namespace oceanbase::common; using namespace oceanbase::common;
using namespace oceanbase::blocksstable; using namespace oceanbase::blocksstable;
...@@ -175,7 +176,7 @@ int ObAdminDumpsstExecutor::load_config() ...@@ -175,7 +176,7 @@ int ObAdminDumpsstExecutor::load_config()
} else { } else {
ObServerConfig &config = config_mgr_.get_config(); ObServerConfig &config = config_mgr_.get_config();
int32_t local_port = static_cast<int32_t>(config.rpc_port); int32_t local_port = static_cast<int32_t>(config.rpc_port);
int32_t ipv4 = ntohl(obsys::CNetUtil::getLocalAddr(config.devname)); int32_t ipv4 = ntohl(obsys::ObNetUtil::get_local_addr_ipv4(config.devname));
GCTX.self_addr_.set_ipv4_addr(ipv4, local_port); GCTX.self_addr_.set_ipv4_addr(ipv4, local_port);
} }
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册