fix(query): fix error in ut.

This commit is contained in:
Haojun Liao 2022-11-25 23:27:36 +08:00
parent 99ea0abffa
commit f9d1726c89
6 changed files with 7 additions and 3 deletions

View File

@ -213,7 +213,7 @@ void taosHashSetEqualFp(SHashObj *pHashObj, _equal_fn_t fp);
*/ */
void taosHashSetFreeFp(SHashObj *pHashObj, _hash_free_fn_t fp); void taosHashSetFreeFp(SHashObj *pHashObj, _hash_free_fn_t fp);
//int64_t taosHashGetCompTimes(SHashObj *pHashObj); int64_t taosHashGetCompTimes(SHashObj *pHashObj);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -15,6 +15,7 @@
#include "sut.h" #include "sut.h"
#include "tdatablock.h" #include "tdatablock.h"
#include "tmisce.h"
static void processClientRsp(void* parent, SRpcMsg* pRsp, SEpSet* pEpSet) { static void processClientRsp(void* parent, SRpcMsg* pRsp, SEpSet* pEpSet) {
TestClient* client = (TestClient*)parent; TestClient* client = (TestClient*)parent;

View File

@ -20,9 +20,9 @@
#include <map> #include <map>
#include <set> #include <set>
#include "tdatablock.h"
#include "tname.h" #include "tname.h"
#include "ttypes.h" #include "ttypes.h"
#include "tmisce.h"
std::unique_ptr<MockCatalogService> g_mockCatalogService; std::unique_ptr<MockCatalogService> g_mockCatalogService;

View File

@ -38,6 +38,7 @@
#include "tglobal.h" #include "tglobal.h"
#include "trpc.h" #include "trpc.h"
#include "tvariant.h" #include "tvariant.h"
#include "tmisce.h"
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wwrite-strings" #pragma GCC diagnostic ignored "-Wwrite-strings"

View File

@ -20,6 +20,8 @@
#include "tlog.h" #include "tlog.h"
#include "transLog.h" #include "transLog.h"
#include "trpc.h" #include "trpc.h"
#include "tmisce.h"
using namespace std; using namespace std;
const char *label = "APP"; const char *label = "APP";

View File

@ -889,4 +889,4 @@ void *taosHashAcquire(SHashObj *pHashObj, const void *key, size_t keyLen) {
void taosHashRelease(SHashObj *pHashObj, void *p) { taosHashCancelIterate(pHashObj, p); } void taosHashRelease(SHashObj *pHashObj, void *p) { taosHashCancelIterate(pHashObj, p); }
//int64_t taosHashGetCompTimes(SHashObj *pHashObj) { return atomic_load_64(&pHashObj->compTimes); } int64_t taosHashGetCompTimes(SHashObj *pHashObj) { return 0 /*atomic_load_64(&pHashObj->compTimes)*/; }