ObRowBuffer use tenant mem

This commit is contained in:
obdev
2024-02-08 23:07:30 +00:00
committed by ob-robot
parent f15dd55d21
commit ead074885f

View File

@ -227,7 +227,7 @@ OB_INLINE int ObRowBuffer::extend_buf()
if (buf_size_ >= MAX_ROW_BUFFER_SIZE) { if (buf_size_ >= MAX_ROW_BUFFER_SIZE) {
ret = OB_BUF_NOT_ENOUGH; ret = OB_BUF_NOT_ENOUGH;
STORAGE_LOG(WARN, "Failed to extend row buf", K(ret), K(*this)); STORAGE_LOG(WARN, "Failed to extend row buf", K(ret), K(*this));
} else if (OB_ISNULL(buf_ = reinterpret_cast<char *>(common::ob_malloc(MAX_ROW_BUFFER_SIZE, "ObRowBuffer")))) { } else if (OB_ISNULL(buf_ = reinterpret_cast<char *>(common::ob_malloc(MAX_ROW_BUFFER_SIZE, ObMemAttr(MTL_ID(), "ObRowBuffer"))))) {
ret = OB_ALLOCATE_MEMORY_FAILED; ret = OB_ALLOCATE_MEMORY_FAILED;
STORAGE_LOG(WARN, "Failed to alloc memory for row buffer", K(ret)); STORAGE_LOG(WARN, "Failed to alloc memory for row buffer", K(ret));
reset(); reset();