diff options
author | monty@mashka.mysql.fi <> | 2002-11-20 22:56:57 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-11-20 22:56:57 +0200 |
commit | e65ddf3fc36e086c3209835584bb71a5abc73247 (patch) | |
tree | 1deb846a75b9e1e5c1491e20df66b4d74fc6fa0b /sql/table.cc | |
parent | f9e6ae6f42bb4321639ec40c622c394d79d17661 (diff) | |
download | mariadb-git-e65ddf3fc36e086c3209835584bb71a5abc73247.tar.gz |
Try to optimize the cache buffer size needed for bulk_insert
Fix for shutdown on Mac OS X
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/table.cc b/sql/table.cc index b68edac5fc2..62163819599 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -143,7 +143,7 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag, goto err_not_open; /* purecov: inspected */ bzero((char*) keyinfo,n_length); outparam->key_info=keyinfo; - outparam->max_key_length=0; + outparam->max_key_length= outparam->total_key_length= 0; key_part= (KEY_PART_INFO*) (keyinfo+keys); strpos=disk_buff+6; @@ -201,6 +201,7 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag, } set_if_bigger(outparam->max_key_length,keyinfo->key_length+ keyinfo->key_parts); + outparam->total_key_length+= keyinfo->key_length; if (keyinfo->flags & HA_NOSAME) set_if_bigger(outparam->max_unique_length,keyinfo->key_length); } |