summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoristruewing@stella.local <>2008-02-14 16:13:51 +0100
committeristruewing@stella.local <>2008-02-14 16:13:51 +0100
commitd00dbff4ce99ce7fb0ffe79a59dff60e425f97a6 (patch)
treeb69041332106ca44c463ccf4442ac0413c3a31b1
parent21534505d000fb66f26f57aa1666dab827576e77 (diff)
parenta64d12ce3a7da13c60bf9c486341dcdda4cfd116 (diff)
downloadmariadb-git-d00dbff4ce99ce7fb0ffe79a59dff60e425f97a6.tar.gz
Merge stella.local:/home2/mydev/mysql-5.0-ateam
into stella.local:/home2/mydev/mysql-5.0-axmrg
-rw-r--r--myisam/mi_open.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/myisam/mi_open.c b/myisam/mi_open.c
index 5314d6a9a6c..d4d8458a669 100644
--- a/myisam/mi_open.c
+++ b/myisam/mi_open.c
@@ -270,6 +270,9 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
if (share->options & HA_OPTION_COMPRESS_RECORD)
share->base.max_key_length+=2; /* For safety */
+ /* Add space for node pointer */
+ share->base.max_key_length+= share->base.key_reflength;
+
if (!my_multi_malloc(MY_WME,
&share,sizeof(*share),
&share->state.rec_per_key_part,sizeof(long)*key_parts,