Skip to content

Commit

Permalink
fix for bug partition id = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
yujun777 committed Jan 8, 2024
1 parent 42a207f commit 3cd1bb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions be/src/olap/tablet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1337,6 +1337,11 @@ std::vector<RowsetSharedPtr> Tablet::_pick_visible_rowsets_to_compaction(
}
}

// program has bug, then the visible_version can not update
if (partition_id() == 0) {
visible_version = std::numeric_limits<int64_t>::max();
}

std::vector<RowsetSharedPtr> candidate_rowsets;
{
std::shared_lock rlock(_meta_lock);
Expand Down

0 comments on commit 3cd1bb4

Please sign in to comment.