提交 c8ba20ac 编写于 作者: dengyihao's avatar dengyihao

enh: valid fqdn

上级 28318721
...@@ -31,8 +31,9 @@ static int32_t transValidLocalFqdn(const char* localFqdn, uint32_t* ip) { ...@@ -31,8 +31,9 @@ static int32_t transValidLocalFqdn(const char* localFqdn, uint32_t* ip) {
*ip = taosGetIpv4FromFqdn(localFqdn); *ip = taosGetIpv4FromFqdn(localFqdn);
if (*ip == 0xFFFFFFFF) { if (*ip == 0xFFFFFFFF) {
terrno = TSDB_CODE_RPC_FQDN_ERROR; terrno = TSDB_CODE_RPC_FQDN_ERROR;
return -1;
} }
return terrno; return 0;
} }
void* rpcOpen(const SRpcInit* pInit) { void* rpcOpen(const SRpcInit* pInit) {
SRpcInfo* pRpc = taosMemoryCalloc(1, sizeof(SRpcInfo)); SRpcInfo* pRpc = taosMemoryCalloc(1, sizeof(SRpcInfo));
......
...@@ -760,6 +760,7 @@ void taosSetAllDebugFlag(int32_t flag) { ...@@ -760,6 +760,7 @@ void taosSetAllDebugFlag(int32_t flag) {
fsDebugFlag = flag; fsDebugFlag = flag;
fnDebugFlag = flag; fnDebugFlag = flag;
smaDebugFlag = flag; smaDebugFlag = flag;
idxDebugFlag = flag;
uInfo("all debug flag are set to %d", flag); uInfo("all debug flag are set to %d", flag);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册