summaryrefslogtreecommitdiff
path: root/storage/myisammrg
diff options
context:
space:
mode:
authorSergey Glukhov <Sergey.Glukhov@sun.com>2009-05-27 15:42:19 +0500
committerSergey Glukhov <Sergey.Glukhov@sun.com>2009-05-27 15:42:19 +0500
commitc8a7b7914203a95c30ce45e800f7676744248bf7 (patch)
tree4007055b2807d30f793f20e8d986f32a0332b570 /storage/myisammrg
parentd31b6e47844bb277c69eb9a8993a1024cbdca629 (diff)
parentf54beb2dccb921296a4c0bec1aa45e5dd6e53a69 (diff)
downloadmariadb-git-c8a7b7914203a95c30ce45e800f7676744248bf7.tar.gz
5.0-bugteam->5.1-bugteam merge
Diffstat (limited to 'storage/myisammrg')
-rw-r--r--storage/myisammrg/ha_myisammrg.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/myisammrg/ha_myisammrg.cc b/storage/myisammrg/ha_myisammrg.cc
index 7e25309ae70..1e82983b97c 100644
--- a/storage/myisammrg/ha_myisammrg.cc
+++ b/storage/myisammrg/ha_myisammrg.cc
@@ -925,11 +925,11 @@ int ha_myisammrg::info(uint flag)
with such a number, it'll be an error later anyway.
*/
bzero((char*) table->key_info[0].rec_per_key,
- sizeof(table->key_info[0].rec_per_key) * table->s->key_parts);
+ sizeof(table->key_info[0].rec_per_key[0]) * table->s->key_parts);
#endif
memcpy((char*) table->key_info[0].rec_per_key,
(char*) mrg_info.rec_per_key,
- sizeof(table->key_info[0].rec_per_key) *
+ sizeof(table->key_info[0].rec_per_key[0]) *
min(file->keys, table->s->key_parts));
}
}