Skip to content

Commit

Permalink
[Fix](segment compaction) _check_and_set_is_doing_segcompaction shoul…
Browse files Browse the repository at this point in the history
…d be the last condition

introduced by #33001
  • Loading branch information
eldenmoon committed Mar 29, 2024
1 parent 97123cf commit 83b6285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/olap/rowset/beta_rowset_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ Status BetaRowsetWriter::_segcompaction_if_necessary() {
// otherwise _segcompacting_cond will never get notified
if (!config::enable_segcompaction || !_context.enable_segcompaction ||
!_context.tablet_schema->cluster_key_idxes().empty() ||
!_check_and_set_is_doing_segcompaction() ||
_context.tablet_schema->num_variant_columns() > 0) {
_context.tablet_schema->num_variant_columns() > 0 ||
!_check_and_set_is_doing_segcompaction()) {
return status;
}
if (_segcompaction_status.load() != OK) {
Expand Down

0 comments on commit 83b6285

Please sign in to comment.