diff --git a/source/libs/transport/src/trans.c b/source/libs/transport/src/trans.c index 9fc3d4a56d..018d5f98c0 100644 --- a/source/libs/transport/src/trans.c +++ b/source/libs/transport/src/trans.c @@ -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)); diff --git a/source/util/src/tlog.c b/source/util/src/tlog.c index 5da5d496d1..7339498cd0 100644 --- a/source/util/src/tlog.c +++ b/source/util/src/tlog.c @@ -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); }