Fix mis-copy of chunk in make_with_timestamps (#19970)

Signed-off-by: Li Liu <liliu@LideMacBook-Pro.local>

Signed-off-by: Li Liu <liliu@LideMacBook-Pro.local>
Co-authored-by: Li Liu <liliu@LideMacBook-Pro.local>
pull/19969/head
liliu-z 2022-10-21 16:35:29 +08:00 committed by GitHub
parent 581e1d8c35
commit ce8e4d17b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -726,7 +726,7 @@ void
SegmentSealedImpl::mask_with_timestamps(BitsetType& bitset_chunk, Timestamp timestamp) const {
// TODO change the
AssertInfo(insert_record_.timestamps_.num_chunk() == 1, "num chunk not equal to 1 for sealed segment");
auto timestamps_data = insert_record_.timestamps_.get_chunk(0);
const auto& timestamps_data = insert_record_.timestamps_.get_chunk(0);
AssertInfo(timestamps_data.size() == get_row_count(), "Timestamp size not equal to row count");
auto range = insert_record_.timestamp_index_.get_active_range(timestamp);