Fix function ObDatumRow::reserve with keep_data argument

This commit is contained in:
wudidapaopao 2023-07-03 07:48:11 +00:00 committed by ob-robot
parent 5e3df6523d
commit 33fd511f19

View File

@ -276,7 +276,7 @@ int ObDatumRow::reserve(const int64_t capacity, const bool keep_data)
STORAGE_LOG(WARN, "Invalid argument to reserve datum row", K(ret), K(capacity));
} else if (capacity <= get_capacity()) {
// skip
} else if (OB_FAIL(datum_buffer_.reserve(capacity))) {
} else if (OB_FAIL(datum_buffer_.reserve(capacity, keep_data))) {
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));