diff --git a/source/client/src/clientMain.c b/source/client/src/clientMain.c index 7fdb735a0743e6092e4e1b2598dc5049e2b70ef6..29887115b966964ef1bc3eb2abf9bc9c05a4e933 100644 --- a/source/client/src/clientMain.c +++ b/source/client/src/clientMain.c @@ -882,6 +882,8 @@ void doAsyncQuery(SRequestObj *pRequest, bool updateMetaForce) { if (pRequest->retry++ > REQUEST_TOTAL_EXEC_TIMES) { code = pRequest->prevCode; terrno = code; + pRequest->code = code; + tscDebug("call sync query cb with code: %s", tstrerror(code)); pRequest->body.queryFp(pRequest->body.param, pRequest, code); return; }