From 0903276eaea3058dc0f11216977fd7b216d51420 Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Fri, 14 Jun 2024 13:41:03 +0300 Subject: [PATCH] MDEV-30651: Assertion `sel->quick' in make_range_rowid_filters, followup Review followup: RANGE_OPT_PARAM statement_should_be_aborted() checks for thd->is_fatal_error and thd->is_error(). The first is redundant when the second is present. --- sql/opt_range.h | 1 - 1 file changed, 1 deletion(-) diff --git a/sql/opt_range.h b/sql/opt_range.h index 20be6031a2d..ea0ab9a52e9 100644 --- a/sql/opt_range.h +++ b/sql/opt_range.h @@ -736,7 +736,6 @@ public: { return thd->killed || - thd->is_fatal_error || thd->is_error() || alloced_sel_args > SEL_ARG::MAX_SEL_ARGS; }