From 9372c9ebd2d63f27bec2e203a4a9bda37ac4e2df Mon Sep 17 00:00:00 2001 From: Sreeharsha Ramanavarapu Date: Mon, 3 Aug 2015 10:08:46 +0530 Subject: [PATCH] Bug #20909518: HANDLE_FATAL_SIGNAL (SIG=11) IN FIND_USED_PARTITIONS | SQL/OPT_RANGE.CC:3884 Post-push fix. --- sql/opt_range.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 795f662f256..4b76fbd20a9 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -3088,7 +3088,6 @@ int find_used_partitions(PART_PRUNE_PARAM *ppar, SEL_ARG *key_tree) int partno= (int)key_tree->part; bool pushed= FALSE; bool set_full_part_if_bad_ret= FALSE; - RANGE_OPT_PARAM *range_par= &(ppar->range_param); if (key_tree->left != &null_element) { @@ -3149,7 +3148,7 @@ int find_used_partitions(PART_PRUNE_PARAM *ppar, SEL_ARG *key_tree) The only case where we can get "no satisfying subpartitions" returned from the above call is when an error has occurred. */ - DBUG_ASSERT(range_par->thd->is_error()); + DBUG_ASSERT(ppar->range_param.thd->is_error()); return 0; }