From b47ed7f236b0047300f6bff0184da777ee2a5029 Mon Sep 17 00:00:00 2001 From: Tyshawn Date: Fri, 1 Apr 2022 10:36:56 +0800 Subject: [PATCH] [BUG.FIX]adapt interm result scanner mem limit to tmp file block size --- src/sql/executor/ob_interm_result_pool.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sql/executor/ob_interm_result_pool.h b/src/sql/executor/ob_interm_result_pool.h index ac8c1ce1ed..410bf0f269 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(); -- GitLab