enh: valid fqdn

This commit is contained in:
yihaoDeng 2022-05-25 19:14:00 +08:00
parent 28318721fc
commit c8ba20ac54
2 changed files with 3 additions and 1 deletions

View File

@ -31,8 +31,9 @@ static int32_t transValidLocalFqdn(const char* localFqdn, uint32_t* ip) {
*ip = taosGetIpv4FromFqdn(localFqdn);
if (*ip == 0xFFFFFFFF) {
terrno = TSDB_CODE_RPC_FQDN_ERROR;
return -1;
}
return terrno;
return 0;
}
void* rpcOpen(const SRpcInit* pInit) {
SRpcInfo* pRpc = taosMemoryCalloc(1, sizeof(SRpcInfo));

View File

@ -760,6 +760,7 @@ void taosSetAllDebugFlag(int32_t flag) {
fsDebugFlag = flag;
fnDebugFlag = flag;
smaDebugFlag = flag;
idxDebugFlag = flag;
uInfo("all debug flag are set to %d", flag);
}