Commit 2b1085e4 authored by heikki@donna.mysql.fi's avatar heikki@donna.mysql.fi

ha_innobase.cc mean_rec_length was set to a too small value for > 4 GB tables...

ha_innobase.cc	mean_rec_length was set to a too small value for > 4 GB tables because of a wrong typecast
parent b6892306
...@@ -21,7 +21,7 @@ InnoDB */ ...@@ -21,7 +21,7 @@ InnoDB */
- Ask Monty if strings of different languages can exist in the same - Ask Monty if strings of different languages can exist in the same
database. Answer: in near future yes, but not yet. database. Answer: in near future yes, but not yet.
*/ */
#ifdef __GNUC__ #ifdef __GNUC__
#pragma implementation // gcc: Class implementation #pragma implementation // gcc: Class implementation
#endif #endif
...@@ -2844,7 +2844,7 @@ ha_innobase::info( ...@@ -2844,7 +2844,7 @@ ha_innobase::info(
if (records == 0) { if (records == 0) {
mean_rec_length = 0; mean_rec_length = 0;
} else { } else {
mean_rec_length = (ulong) data_file_length / records; mean_rec_length = (ulong) (data_file_length / records);
} }
} }
......
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