Commit 7da72c93 authored by unknown's avatar unknown
Browse files

Remove #if 0 as this only confuses the code withing adding anything

parent 0451add3
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -2138,15 +2138,9 @@ find_best(JOIN *join,table_map rest_tables,uint idx,double record_count,
		    x = used key parts (1 <= x <= c)
		  */
		  double rec_per_key;
#if 0
		  if (!(rec_per_key=(double)
			keyinfo->rec_per_key[keyinfo->key_parts-1]))
		    rec_per_key=(double) s->records/rec+1;
#else
                  rec_per_key= keyinfo->rec_per_key[keyinfo->key_parts-1] ?
		    (double) keyinfo->rec_per_key[keyinfo->key_parts-1] :
		    (double) s->records/rec+1;   
#endif

		  if (!s->records)
		    tmp=0;