summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <heikki@donna.mysql.fi>2001-09-09 17:41:29 +0300
committerunknown <heikki@donna.mysql.fi>2001-09-09 17:41:29 +0300
commit1c404ff9e3ec640a45e4451aaf612aeb699ed357 (patch)
tree0087e392501567d61b8f40b358e5a64c4ab0630d /sql
parenta278411271b00f0f1c8b49eb659dbeffa4cfce10 (diff)
downloadmariadb-git-1c404ff9e3ec640a45e4451aaf612aeb699ed357.tar.gz
ha_innobase.cc mean_rec_length was set to a too small value for > 4 GB tables because of a wrong typecast
sql/ha_innobase.cc: mean_rec_length was set to a too small value for > 4 GB tables because of a wrong typecast
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_innobase.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/ha_innobase.cc b/sql/ha_innobase.cc
index 2eed5ada680..104aaf8886c 100644
--- a/sql/ha_innobase.cc
+++ b/sql/ha_innobase.cc
@@ -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);
}
}