Skip to content

Commit

Permalink
Merge pull request #792 from taosdata/fix/TD-27796-3.0
Browse files Browse the repository at this point in the history
fix: query with reset query cache is yes crash
  • Loading branch information
DuanKuanJun authored Aug 29, 2024
2 parents 4103f11 + d7a02d9 commit 0f7f8f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/benchQuery.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ static void *specifiedTableQuery(void *sarg) {
- (et - st))); // ms
}
if (g_queryInfo.reset_query_cache) {
if (queryDbExecCall(pThreadInfo->conn,
"RESET QUERY CACHE")) {
// execute sql
if (selectAndGetResult(pThreadInfo, "RESET QUERY CACHE")) {
errorPrint("%s() LN%d, reset query cache failed\n",
__func__, __LINE__);
return NULL;
Expand Down

0 comments on commit 0f7f8f7

Please sign in to comment.