enh: valid fqdn
This commit is contained in:
parent
28318721fc
commit
c8ba20ac54
|
@ -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) {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue