Skip to content

Commit

Permalink
Cleanup unused READ_RECORD::index
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgs authored and Sergey Vojtovich committed May 28, 2019
1 parent c8d9ec2 commit 3950a98
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion sql/records.h
Expand Up @@ -58,7 +58,6 @@ struct READ_RECORD
SQL_SELECT *select;
uint cache_records;
uint ref_length,struct_length,reclength,rec_cache_size,error_offset;
uint index;
uchar *ref_pos; /* pointer to form->refpos */
uchar *record;
uchar *rec_buf; /* to read field values after filesort */
Expand Down
2 changes: 0 additions & 2 deletions sql/sql_select.cc
Expand Up @@ -20392,7 +20392,6 @@ join_read_first(JOIN_TAB *tab)
tab->table->status=0;
tab->read_record.read_record_func= join_read_next;
tab->read_record.table=table;
tab->read_record.index=tab->index;
tab->read_record.record=table->record[0];
if (!table->file->inited)
error= table->file->ha_index_init(tab->index, tab->sorted);
Expand Down Expand Up @@ -20433,7 +20432,6 @@ join_read_last(JOIN_TAB *tab)
tab->table->status=0;
tab->read_record.read_record_func= join_read_prev;
tab->read_record.table=table;
tab->read_record.index=tab->index;
tab->read_record.record=table->record[0];
if (!table->file->inited)
error= table->file->ha_index_init(tab->index, 1);
Expand Down

0 comments on commit 3950a98

Please sign in to comment.