| 12727 | |
| 12728 | |
| 12729 | static uint |
| 12730 | cache_record_length(JOIN *join,uint idx) |
| 12731 | { |
| 12732 | uint length=0; |
| 12733 | JOIN_TAB **pos,**end; |
| 12734 | |
| 12735 | for (pos=join->best_ref+join->const_tables,end=join->best_ref+idx ; |
| 12736 | pos != end ; |
| 12737 | pos++) |
| 12738 | { |
| 12739 | JOIN_TAB *join_tab= *pos; |
| 12740 | length+= join_tab->get_used_fieldlength(); |
| 12741 | } |
| 12742 | return length; |
| 12743 | } |
| 12744 | |
| 12745 | /* |
| 12746 | Estimate the number of engine ha_index_read_calls for EQ_REF tables |
no test coverage detected