Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukang-Lian committed Nov 12, 2024
1 parent ecb460a commit b17d93c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions be/src/cloud/cloud_cumulative_compaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,14 @@ Status CloudCumulativeCompaction::prepare_compact() {

// pick rowsets to compact
auto st = pick_rowsets_to_compact();
if (!st.ok()) {
if (tried == 0 && _last_delete_version.first != -1) {
// we meet a delete version, should increase the cumulative point to let base compaction handle the delete version.
// plus 1 to skip the delete version.
// NOTICE: after that, the cumulative point may be larger than max version of this tablet, but it doesn't matter.
update_cumulative_point();
return Status::OK();
}
return st;
if (tried == 0 && _last_delete_version.first != -1) {
// we meet a delete version, should increase the cumulative point to let base compaction handle the delete version.
// plus 1 to skip the delete version.
// NOTICE: after that, the cumulative point may be larger than max version of this tablet, but it doesn't matter.
update_cumulative_point();
st = Status::OK();
}
RETURN_IF_ERROR(st);

// prepare compaction job
cloud::TabletJobInfoPB job;
Expand Down

0 comments on commit b17d93c

Please sign in to comment.