Bug #20909518: HANDLE_FATAL_SIGNAL (SIG=11) IN

FIND_USED_PARTITIONS | SQL/OPT_RANGE.CC:3884

Post-push fix.
This commit is contained in:
Sreeharsha Ramanavarapu 2015-08-03 10:08:46 +05:30
parent 8006ad8053
commit 9372c9ebd2

View File

@ -3088,7 +3088,6 @@ int find_used_partitions(PART_PRUNE_PARAM *ppar, SEL_ARG *key_tree)
int partno= (int)key_tree->part; int partno= (int)key_tree->part;
bool pushed= FALSE; bool pushed= FALSE;
bool set_full_part_if_bad_ret= FALSE; bool set_full_part_if_bad_ret= FALSE;
RANGE_OPT_PARAM *range_par= &(ppar->range_param);
if (key_tree->left != &null_element) 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" The only case where we can get "no satisfying subpartitions"
returned from the above call is when an error has occurred. 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; return 0;
} }