From 828fb8b35778982c25b92e485b8326883981f5cc Mon Sep 17 00:00:00 2001 From: Monk-Liu <1152761042@qq.com> Date: Sat, 10 Feb 2024 01:42:36 +0000 Subject: [PATCH] [bugfix]: shouldn't ignore sizeof(Block) while calc remain size of a block. --- src/sql/engine/basic/chunk_store/ob_block_iwriter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/engine/basic/chunk_store/ob_block_iwriter.h b/src/sql/engine/basic/chunk_store/ob_block_iwriter.h index db8f72efce..fbf208e942 100644 --- a/src/sql/engine/basic/chunk_store/ob_block_iwriter.h +++ b/src/sql/engine/basic/chunk_store/ob_block_iwriter.h @@ -97,9 +97,9 @@ protected: return ret; } - inline bool is_overflow(uint64_t size) + inline bool is_overflow(int64_t size) { - return size > get_remain(); + return size > get_remain() - static_cast(sizeof(ObTempBlockStore::Block)); } inline const char *get_last_row() { return last_row_pos_; }