summaryrefslogtreecommitdiff
path: root/myisam/mi_packrec.c
diff options
context:
space:
mode:
authorunknown <svoj@may.pils.ru>2006-08-23 20:06:56 +0500
committerunknown <svoj@may.pils.ru>2006-08-23 20:06:56 +0500
commit69a29c1ea143387588367afbc3121fce4d977415 (patch)
treeee6cdffc96251b8374d28bef429fe3a0935c82ba /myisam/mi_packrec.c
parentf40b6c273cb782bd3fd4563518eb5d57c010f13d (diff)
parentc17fc16cc47d1a8519e7934e71fa6d3c8f112371 (diff)
downloadmariadb-git-69a29c1ea143387588367afbc3121fce4d977415.tar.gz
Merge may.pils.ru:/home/svoj/devel/mysql/BUG19702/mysql-4.1
into may.pils.ru:/home/svoj/devel/mysql/BUG19702/mysql-5.0-engines myisam/mi_packrec.c: Auto merged
Diffstat (limited to 'myisam/mi_packrec.c')
-rw-r--r--myisam/mi_packrec.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/myisam/mi_packrec.c b/myisam/mi_packrec.c
index 41ab71204c4..c9653eadc28 100644
--- a/myisam/mi_packrec.c
+++ b/myisam/mi_packrec.c
@@ -16,7 +16,7 @@
/* Functions to compressed records */
-#include "myisamdef.h"
+#include "fulltext.h"
#define IS_CHAR ((uint) 32768) /* Bit if char (not offset) in tree */
@@ -230,11 +230,19 @@ my_bool _mi_read_pack_info(MI_INFO *info, pbool fix_keys)
{
for (i=0 ; i < share->base.keys ; i++)
{
- share->keyinfo[i].keylength+=(uint16) diff_length;
- share->keyinfo[i].minlength+=(uint16) diff_length;
- share->keyinfo[i].maxlength+=(uint16) diff_length;
- share->keyinfo[i].seg[share->keyinfo[i].keysegs].length=
- (uint16) rec_reflength;
+ MI_KEYDEF *keyinfo= &share->keyinfo[i];
+ keyinfo->keylength+= (uint16) diff_length;
+ keyinfo->minlength+= (uint16) diff_length;
+ keyinfo->maxlength+= (uint16) diff_length;
+ keyinfo->seg[keyinfo->flag & HA_FULLTEXT ?
+ FT_SEGS : keyinfo->keysegs].length= (uint16) rec_reflength;
+ }
+ if (share->ft2_keyinfo.seg)
+ {
+ MI_KEYDEF *ft2_keyinfo= &share->ft2_keyinfo;
+ ft2_keyinfo->keylength+= (uint16) diff_length;
+ ft2_keyinfo->minlength+= (uint16) diff_length;
+ ft2_keyinfo->maxlength+= (uint16) diff_length;
}
}