Skip to content

Commit

Permalink
fix: count zero is set not error
Browse files Browse the repository at this point in the history
  • Loading branch information
DuanKuanJun committed May 24, 2023
1 parent d761ede commit 3c11f3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/benchQuery.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ static int multi_thread_specified_table_query(uint16_t iface, char* dbName) {
// check invaid
if(nSqlCount == 0 || nConcurrent == 0 ) {
if(nSqlCount == 0)
errorPrint(" query sql count is %" PRIu64 ". must set query sqls. \n", nSqlCount);
infoPrint(" query sql count is %" PRIu64 ". must set query sqls. \n", nSqlCount);
if(nConcurrent == 0)
errorPrint(" concurrent is %d , specified_table_query->concurrent must not zero. \n", nConcurrent);
return -1;
infoPrint(" concurrent is %d , specified_table_query->concurrent must not zero. \n", nConcurrent);
return 0;
}

// malloc funciton global memory
Expand Down

0 comments on commit 3c11f3a

Please sign in to comment.