Skip to content

Commit

Permalink
branch-3.0: [enhancement](cloud-schema-change) Rowset [0-1] should no…
Browse files Browse the repository at this point in the history
…t engage in delete bitmap calculation during MOW SC #44171 (#44258)

Cherry-picked from #44171

Co-authored-by: Siyang Tang <[email protected]>
  • Loading branch information
github-actions[bot] and TangSiyang2001 authored Nov 26, 2024
1 parent f6ed2e5 commit 6390254
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/cloud/cloud_schema_change_job.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ Status CloudSchemaChangeJob::_convert_historical_rowsets(const SchemaChangeParam
// If there are historical versions of rowsets, we need to recalculate their delete
// bitmaps, otherwise we will miss the delete bitmaps of incremental rowsets
int64_t start_calc_delete_bitmap_version =
already_exist_any_version ? 0 : sc_job->alter_version() + 1;
// [0-1] is a placeholder rowset, start from 2.
already_exist_any_version ? 2 : sc_job->alter_version() + 1;
RETURN_IF_ERROR(_process_delete_bitmap(sc_job->alter_version(),
start_calc_delete_bitmap_version, initiator));
sc_job->set_delete_bitmap_lock_initiator(initiator);
Expand Down

0 comments on commit 6390254

Please sign in to comment.