Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
csun5285 committed Mar 30, 2024
1 parent 2123e3b commit 05fb8df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions be/src/olap/single_replica_compaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,8 @@ bool SingleReplicaCompaction::_find_rowset_to_fetch(const std::vector<Version>&
if (find) {
// 4. reset input rowsets
_input_rowsets.clear();
Tablet* tablet = static_cast<Tablet*>(_tablet.get());
std::vector<RowsetSharedPtr> candidate_rowsets;
tablet->traverse_rowsets([&candidate_rowsets, &proper_version](const auto& rs) {
tablet()->traverse_rowsets([&candidate_rowsets, &proper_version](const auto& rs) {
// only need rowset in proper_version
if (rs->is_local() && rs->end_version() >= proper_version->first &&
rs->start_version() <= proper_version->second) {
Expand Down

0 comments on commit 05fb8df

Please sign in to comment.