diff --git a/src/sql/executor/ob_interm_result_pool.h b/src/sql/executor/ob_interm_result_pool.h index ac8c1ce1edade6bd08e40b90cccf7f9bfb7acaa0..410bf0f269d3d1724d8172cff489242b39e8abcc 100644 --- a/src/sql/executor/ob_interm_result_pool.h +++ b/src/sql/executor/ob_interm_result_pool.h @@ -31,7 +31,8 @@ public: // before interm result add to manager. static const int64_t SCANNER_CAPACITY = 256L << 10; // 256K - static const int64_t SCANNER_MEM_LIMIT = 8 << 20; // 8MB + // adapt to block size in tmp file. + static const int64_t SCANNER_MEM_LIMIT = (8 << 20) - (32 << 10); // 8MB - 32K ObIntermResultPool(); virtual ~ObIntermResultPool();