fix check_old_row_legitimacy

This commit is contained in:
z404289981
2023-08-18 07:40:34 +00:00
committed by ob-robot
parent 80c9e58e7f
commit e842fa11c7
2 changed files with 4 additions and 7 deletions

View File

@ -582,12 +582,7 @@ OB_INLINE int ObStorageDatum::from_buf_enhance(const char *buf, const int64_t bu
} else {
reuse();
len_ = static_cast<uint32_t>(buf_len);
if (sizeof(uint64_t) == buf_len) {
// To maintain the same processing method as other micro-block formats,
// we perform a deep copy on columns with a length of 8 bytes in flat micro-block format.
// see ObClusterColumnReader::read_column_from_buf
MEMCPY(no_cv(ptr_), buf, sizeof(uint64_t));
} else if (buf_len > 0) {
if (buf_len > 0) {
ptr_ = buf;
}
}