Commit 80cbf3a1 authored by Sergey Petrunya's avatar Sergey Petrunya

Small code cleanups

parent c696fb6e
...@@ -230,7 +230,7 @@ handler::multi_range_read_init(RANGE_SEQ_IF *seq_funcs, void *seq_init_param, ...@@ -230,7 +230,7 @@ handler::multi_range_read_init(RANGE_SEQ_IF *seq_funcs, void *seq_init_param,
int handler::multi_range_read_next(char **range_info) int handler::multi_range_read_next(char **range_info)
{ {
int result= HA_ERR_END_OF_FILE; int result= HA_ERR_END_OF_FILE;
int range_res; bool range_res;
DBUG_ENTER("handler::multi_range_read_next"); DBUG_ENTER("handler::multi_range_read_next");
if (!mrr_have_range) if (!mrr_have_range)
...@@ -1005,7 +1005,8 @@ int DsMrr_impl::setup_two_handlers() ...@@ -1005,7 +1005,8 @@ int DsMrr_impl::setup_two_handlers()
if (res) if (res)
goto error; goto error;
} }
if ((primary_file->inited != handler::RND) && primary_file->ha_rnd_init(FALSE)) if ((primary_file->inited != handler::RND) &&
(res= primary_file->ha_rnd_init(FALSE)))
goto error; goto error;
} }
DBUG_RETURN(0); DBUG_RETURN(0);
......
...@@ -133,7 +133,6 @@ class Key_value_records_iterator ...@@ -133,7 +133,6 @@ class Key_value_records_iterator
*/ */
bool get_next_row; bool get_next_row;
//uchar *cur_index_tuple; /* key_buffer.read() reads to here */
public: public:
int init(Mrr_ordered_index_reader *owner_arg); int init(Mrr_ordered_index_reader *owner_arg);
int get_next(char **range_info); int get_next(char **range_info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment