Fix not reserve obj_buf when reserve datum row

This commit is contained in:
obdev 2023-04-04 13:15:00 +00:00 committed by ob-robot
parent 9f0615b6ae
commit 545a294592

View File

@ -275,10 +275,11 @@ int ObDatumRow::reserve(const int64_t capacity, const bool keep_data)
// skip
} else if (OB_FAIL(datum_buffer_.reserve(capacity))) {
STORAGE_LOG(WARN, "Failed to reserve datum buffer", K(ret), K(capacity));
} else if (OB_FAIL(obj_buf_.reserve(capacity))) {
STORAGE_LOG(WARN, "Failed to reserve obj buf", K(ret), K(capacity));
} else {
storage_datums_ = datum_buffer_.get_datums();
old_row_.reset();
obj_buf_.reset();
}
if (OB_SUCC(ret)) {
mvcc_row_flag_.reset();