Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
csun5285 committed Aug 9, 2024
1 parent a9800b4 commit 06a84da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/olap/tablet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,8 @@ Status Tablet::prepare_compaction_and_calculate_permits(

// Time series policy does not rely on permits, it uses goal size to control memory
if (tablet->tablet_meta()->compaction_policy() == CUMULATIVE_TIME_SERIES_POLICY) {
permits = 0;
// permits = 0 means that prepare_compaction failed
permits = 1;
} else {
permits = compaction->get_compaction_permits();
}
Expand Down

0 comments on commit 06a84da

Please sign in to comment.