[bugfix]: shouldn't ignore sizeof(Block) while calc remain size of a block.

This commit is contained in:
Monk-Liu
2024-02-10 01:42:36 +00:00
committed by ob-robot
parent 73c8fba350
commit 828fb8b357

View File

@ -97,9 +97,9 @@ protected:
return ret; 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<int64_t>(sizeof(ObTempBlockStore::Block));
} }
inline const char *get_last_row() { return last_row_pos_; } inline const char *get_last_row() { return last_row_pos_; }