Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](cancel) Fix wrong status when query failed #38982

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
FORMT
  • Loading branch information
zhiqiang-hhhh committed Aug 6, 2024
commit d3498dfcf6883f159e33a1bd7b1d8124843f95a0
10 changes: 5 additions & 5 deletions be/src/runtime/runtime_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -729,11 +729,11 @@ class RuntimeState {
std::string _s3_error_log_file_path;
};

#define RETURN_IF_CANCELLED(state) \
do { \
if (UNLIKELY((state)->is_cancelled())) { \
return (state)->cancel_reason(); \
} \
#define RETURN_IF_CANCELLED(state) \
do { \
if (UNLIKELY((state)->is_cancelled())) { \
return (state)->cancel_reason(); \
} \
} while (false)

} // namespace doris
Loading