ha_innobase.cc mean_rec_length was set to a too small value for > 4 GB tables because of a wrong typecast
This commit is contained in:
parent
b68923066b
commit
2b1085e4ab
@ -21,7 +21,7 @@ InnoDB */
|
||||
- Ask Monty if strings of different languages can exist in the same
|
||||
database. Answer: in near future yes, but not yet.
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma implementation // gcc: Class implementation
|
||||
#endif
|
||||
@ -2844,7 +2844,7 @@ ha_innobase::info(
|
||||
if (records == 0) {
|
||||
mean_rec_length = 0;
|
||||
} else {
|
||||
mean_rec_length = (ulong) data_file_length / records;
|
||||
mean_rec_length = (ulong) (data_file_length / records);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user