summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2005-02-01 10:24:09 +0200
committerunknown <marko@hundin.mysql.fi>2005-02-01 10:24:09 +0200
commit13fa240796570671acf7a7dacab51c26892b5393 (patch)
tree9f00bcb9262f3287eefba3ecd59b224302dc684c /sql
parent43205bbf0b9a788ee64b35e70987a24db969dfcc (diff)
parentcb7df7ebee8547c39a8610ed0dddd38f9305ee64 (diff)
downloadmariadb-git-13fa240796570671acf7a7dacab51c26892b5393.tar.gz
After merge fixes
innobase/mem/mem0pool.c: Auto merged sql/ha_innodb.cc: Auto merged configure.in: Ignore changes that were backported to 4.0 scripts/mysql_install_db.sh: Ignore Ramil's changes for now
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_innodb.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc
index 502f8eb92f3..1d75ce99aee 100644
--- a/sql/ha_innodb.cc
+++ b/sql/ha_innodb.cc
@@ -4672,12 +4672,12 @@ ha_innobase::update_table_comment(
dict_print_info_on_foreign_keys(FALSE, file,
prebuilt->trx, prebuilt->table);
flen = ftell(file);
- if(length + flen + 3 > 64000) {
+ if (flen < 0) {
+ flen = 0;
+ } else if (length + flen + 3 > 64000) {
flen = 64000 - 3 - length;
}
- ut_ad(flen > 0);
-
/* allocate buffer for the full string, and
read the contents of the temporary file */
@@ -4741,12 +4741,12 @@ ha_innobase::get_foreign_key_create_info(void)
prebuilt->trx->op_info = (char*)"";
flen = ftell(file);
- if(flen > 64000 - 1) {
+ if (flen < 0) {
+ flen = 0;
+ } else if(flen > 64000 - 1) {
flen = 64000 - 1;
}
- ut_ad(flen >= 0);
-
/* allocate buffer for the string, and
read the contents of the temporary file */
@@ -5142,12 +5142,12 @@ innodb_show_status(
srv_printf_innodb_monitor(srv_monitor_file);
flen = ftell(srv_monitor_file);
os_file_set_eof(srv_monitor_file);
- if(flen > 64000 - 1) {
+ if (flen < 0) {
+ flen = 0;
+ } else if (flen > 64000 - 1) {
flen = 64000 - 1;
}
- ut_ad(flen > 0);
-
/* allocate buffer for the string, and
read the contents of the temporary file */