diff options
author | unknown <serg@serg.mysql.com> | 2003-01-21 19:37:38 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2003-01-21 19:37:38 +0100 |
commit | e7390ddc66ae7827d3b4e149a90cdefe7e30a90d (patch) | |
tree | dc179bb90999d1646faacdc7083e1f22900a0afc /include | |
parent | aec72f3315b1b0ddf1c9ca86555bbf26004a3a2e (diff) | |
parent | 76078f2c8417df4695f14b75fc4711417d1f3c08 (diff) | |
download | mariadb-git-e7390ddc66ae7827d3b4e149a90cdefe7e30a90d.tar.gz |
merged
include/myisam.h:
Auto merged
myisam/mi_check.c:
Auto merged
myisam/mi_create.c:
Auto merged
myisam/mi_open.c:
Auto merged
myisam/mi_write.c:
Auto merged
myisam/myisamchk.c:
Auto merged
myisam/myisamdef.h:
Auto merged
mysql-test/r/fulltext.result:
Auto merged
mysql-test/t/fulltext.test:
Auto merged
Diffstat (limited to 'include')
-rw-r--r-- | include/my_handler.h | 13 | ||||
-rw-r--r-- | include/myisam.h | 9 |
2 files changed, 18 insertions, 4 deletions
diff --git a/include/my_handler.h b/include/my_handler.h index 629a0974d93..618d1df1a6e 100644 --- a/include/my_handler.h +++ b/include/my_handler.h @@ -1,15 +1,15 @@ /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB - + This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - + This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. - + You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, @@ -43,6 +43,13 @@ typedef struct st_HA_KEYSEG /* Key-portion */ { length=mi_uint2korr((key)+1); (key)+=3; } \ } +#define get_key_length_rdonly(length,key) \ +{ if ((uchar) *(key) != 255) \ + length= ((uint) (uchar) *((key))); \ + else \ + { length=mi_uint2korr((key)+1); } \ +} + #define get_key_pack_length(length,length_pack,key) \ { if ((uchar) *(key) != 255) \ { length= (uint) (uchar) *((key)++); length_pack=1; }\ diff --git a/include/myisam.h b/include/myisam.h index 5c4a5345d37..e06f9fc37ca 100644 --- a/include/myisam.h +++ b/include/myisam.h @@ -342,6 +342,12 @@ typedef struct st_mi_check_param char *op_name; } MI_CHECK; +typedef struct st_sort_ft_buf +{ + uchar *buf, *end; + int count; + uchar lastkey[MI_MAX_KEY_BUFF]; +} SORT_FT_BUF; typedef struct st_sort_info { @@ -354,7 +360,8 @@ typedef struct st_sort_info MI_CHECK *param; char *buff; SORT_KEY_BLOCKS *key_block,*key_block_end; - /* sync things*/ + SORT_FT_BUF *ft_buf; + /* sync things */ uint got_error, threads_running; pthread_mutex_t mutex; pthread_cond_t cond; |