diff --git a/source/libs/function/src/udfd.c b/source/libs/function/src/udfd.c index 6d017683697008db7a7ea40ee6d9c5f83cc0a181..3e03e1acb61d0959b7c567d8cd67d2a1474e2daf 100644 --- a/source/libs/function/src/udfd.c +++ b/source/libs/function/src/udfd.c @@ -605,7 +605,7 @@ SUdf *udfdGetOrCreateUdf(const char *udfName) { int64_t currTime = taosGetTimestampSec(); bool expired = false; if (pUdfHash) { - expired = currTime - (*pUdfHash)->lastFetchTime > 10 * 1000; + expired = currTime - (*pUdfHash)->lastFetchTime > 10 * 1000 * 1000; // 10s if (!expired) { ++(*pUdfHash)->refCount; SUdf *udf = *pUdfHash; @@ -903,7 +903,7 @@ void udfdProcessRpcRsp(void *parent, SRpcMsg *pMsg, SEpSet *pEpSet) { msgInfo->code = udfdSaveFuncBodyToFile(pFuncInfo, udf); if (msgInfo->code == 0) { - udf->lastFetchTime = taosGetTimestampMs(); + udf->lastFetchTime = taosGetTimestampUs(); } tFreeSFuncInfo(pFuncInfo); taosArrayDestroy(retrieveRsp.pFuncInfos); diff --git a/tests/system-test/2-query/odbc.py b/tests/system-test/2-query/odbc.py index f9232dddf8e68ce3122df84a414240bcbbd405e7..9ff4a26ac03cf3514b1b56a7ce27062a734e443a 100644 --- a/tests/system-test/2-query/odbc.py +++ b/tests/system-test/2-query/odbc.py @@ -22,7 +22,7 @@ class TDTestCase: tdSql.execute("insert into db.ctb using db.stb tags(1) (ts, c1) values (now, 1)") tdSql.query("select count(*) from information_schema.ins_columns") - tdSql.checkData(0, 0, 274) + tdSql.checkData(0, 0, 275) tdSql.query("select * from information_schema.ins_columns where table_name = 'ntb'") tdSql.checkRows(14)