From d2b0ef75a5798bc2bdbf7ea5fcdb107438e72131 Mon Sep 17 00:00:00 2001 From: slzhou Date: Thu, 21 Dec 2023 13:10:37 +0800 Subject: [PATCH] fix: windows compilation --- source/libs/executor/src/scanoperator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/executor/src/scanoperator.c b/source/libs/executor/src/scanoperator.c index a44108dc50..d24b01db2c 100644 --- a/source/libs/executor/src/scanoperator.c +++ b/source/libs/executor/src/scanoperator.c @@ -3600,7 +3600,7 @@ int32_t startRowIdSort(STableMergeScanInfo *pInfo) { taosArrayGetSize(pInfo->pResBlock->pDataBlock)); pageSize *= 2; int numOfTables = pInfo->tableEndIndex - pInfo->tableStartIndex + 1; - int32_t memSize = MIN(pageSize * numOfTables, 512 * 1024 * 1024); + int32_t memSize = TMIN(pageSize * numOfTables, 512 * 1024 * 1024); int32_t code = createDiskbasedBuf(&pSort->pExtSrcRowsBuf, pageSize, memSize, "tms-ext-src-block", tsTempDir); dBufSetPrintInfo(pSort->pExtSrcRowsBuf); return code;