Skip to content

Commit

Permalink
fix be ut warning
Browse files Browse the repository at this point in the history
  • Loading branch information
suxiaogang223 committed Dec 9, 2024
1 parent 0ec35de commit a5f28c1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions be/src/vec/sink/writer/vtablet_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1394,13 +1394,12 @@ static Status cancel_channel_and_check_intolerable_failure(Status status,
nch.cancel(err_msg);

// check if index has intolerable failure
Status index_st = ich.check_intolerable_failure();
if (!index_st.ok()) {
if (Status index_st = ich.check_intolerable_failure(); !index_st.ok()) {
status = std::move(index_st);
} else if (Status st = ich.check_tablet_received_rows_consistency(); !st.ok()) {
status = std::move(st);
} else if (Status st = ich.check_tablet_filtered_rows_consistency(); !st.ok()) {
status = std::move(st);
} else if (Status receive_st = ich.check_tablet_received_rows_consistency(); !receive_st.ok()) {
status = std::move(receive_st);
} else if (Status filter_st = ich.check_tablet_filtered_rows_consistency(); !filter_st.ok()) {
status = std::move(filter_st);
}
return status;
}
Expand Down

0 comments on commit a5f28c1

Please sign in to comment.