fix: windows compile issue
This commit is contained in:
parent
20a8c92d3e
commit
7fd0d024fc
|
@ -131,7 +131,7 @@ IF(TD_WINDOWS)
|
|||
SET(COMMON_FLAGS "/w /D_WIN32 /DWIN32 /Zi /MTd")
|
||||
ENDIF()
|
||||
|
||||
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO")
|
||||
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO /FORCE:MULTIPLE")
|
||||
|
||||
# IF (MSVC AND (MSVC_VERSION GREATER_EQUAL 1900))
|
||||
# SET(COMMON_FLAGS "${COMMON_FLAGS} /Wv:18")
|
||||
|
|
|
@ -56,7 +56,7 @@ int32_t tsShellActivityTimer = 3; // second
|
|||
|
||||
// memory pool
|
||||
int8_t tsMemPoolFullFunc = 0;
|
||||
int8_t tsQueryUseMemoryPool = 0;
|
||||
int8_t tsQueryUseMemoryPool = 1;
|
||||
int32_t tsQueryBufferPoolSize = 0; //MB
|
||||
int32_t tsSingleQueryMaxMemorySize = 0; //MB
|
||||
int32_t tsMinReservedMemorySize = 0; //MB
|
||||
|
|
|
@ -988,8 +988,7 @@ int32_t getBufferPgSize(int32_t rowSize, uint32_t* defaultPgsz, int64_t* default
|
|||
// The default buffer for each operator in query is 10MB.
|
||||
// at least four pages need to be in buffer
|
||||
// TODO: make this variable to be configurable.
|
||||
// *defaultBufsz = 4096 * 2560;
|
||||
*defaultBufsz = 4096UL * 2560000;
|
||||
*defaultBufsz = 4096 * 2560;
|
||||
if ((*defaultBufsz) <= (*defaultPgsz)) {
|
||||
(*defaultBufsz) = (*defaultPgsz) * 4;
|
||||
if (*defaultBufsz < ((int64_t)(*defaultPgsz)) * 4) {
|
||||
|
|
|
@ -870,7 +870,7 @@ void qwChkDropTimeoutQuery(SQWorker *mgmt, int32_t currTs) {
|
|||
void *pIter = taosHashIterate(mgmt->ctxHash, NULL);
|
||||
while (pIter) {
|
||||
SQWTaskCtx *ctx = (SQWTaskCtx *)pIter;
|
||||
if (((ctx->lastAckTs <= 0) || (currTs - ctx->lastAckTs) < 60 /*tsQueryNoFetchTimeoutSec*/) && (!QW_EVENT_RECEIVED(ctx, QW_EVENT_DROP))) {
|
||||
if (((ctx->lastAckTs <= 0) || (currTs - ctx->lastAckTs) < tsQueryNoFetchTimeoutSec) && (!QW_EVENT_RECEIVED(ctx, QW_EVENT_DROP))) {
|
||||
pIter = taosHashIterate(mgmt->ctxHash, pIter);
|
||||
continue;
|
||||
}
|
||||
|
@ -880,7 +880,7 @@ void qwChkDropTimeoutQuery(SQWorker *mgmt, int32_t currTs) {
|
|||
|
||||
sId = ctx->sId;
|
||||
|
||||
(void)qwStopTask(QW_FPARAMS(), ctx, true, TSDB_CODE_QRY_NO_FETCH_TIMEOUT);
|
||||
(void)qwStopTask(QW_FPARAMS(), ctx, true, (QW_EVENT_RECEIVED(ctx, QW_EVENT_DROP)) ? ctx->rspCode : TSDB_CODE_QRY_NO_FETCH_TIMEOUT);
|
||||
|
||||
pIter = taosHashIterate(mgmt->ctxHash, pIter);
|
||||
}
|
||||
|
|
|
@ -96,6 +96,8 @@ int main(int argc, char* argv[]) {
|
|||
|
||||
printf("************ prepare data *************\n");
|
||||
|
||||
//create table tbx (ts timestamp, f1 int); insert into tbx values('2024-11-11 00:00:00', 1);
|
||||
|
||||
for (int64_t i = 0; i < 1000000000; ++i) {
|
||||
verifyQueryAsync(taos);
|
||||
printf("%llu queries launched, errTimes:%lld \n", i * 10, errTimes);
|
||||
|
|
Loading…
Reference in New Issue