diff options
author | serg@infomag.ape.relarn.ru <> | 2000-08-14 15:27:19 +0400 |
---|---|---|
committer | serg@infomag.ape.relarn.ru <> | 2000-08-14 15:27:19 +0400 |
commit | 5886090182881b29143091c9bb4d7e7b406ea5df (patch) | |
tree | 290f97643db41800f2922e6143b2a89e93d5476d /include | |
parent | 807460bbceceec25bf97352bc5e232c3e766d70f (diff) | |
download | mariadb-git-5886090182881b29143091c9bb4d7e7b406ea5df.tar.gz |
PART I: Keys support for MyMERGE tables
myisammrg/ |
Makefile.am |
mymrgdef.h | support for keys
myrg_open.c | &
myrg_queue.c | bugfixes
myrg_rfirst.c |
myrg_rkey.c |
myrg_rlast.c |
myrg_rnext.c |
myrg_rprev.c |
myrg_rrnd.c |
include/myisammrg.h | rkey/rnext/etc prototyped
sql/ |
ha_myisammrg.cc | support for keys
ha_myisammrg.h |
myisam/ |
mi_rkey.c | buf==NULL extension, _mi_rkey()
mi_rnext.c |
mi_rprev.c |
include/queues.h | reinit_queue() - same as init_queue, but w/o malloc
mysys/queues.c |
PART II: Miscellaneous
myisam/common_words | deleted (looks like I checked it in by mistake)
some files (like acconfig.h, Makefile.am, COPYING.LIB, etc)
| Change mode to -rw-r--r-- (by `chmod a-x ')
Diffstat (limited to 'include')
-rw-r--r-- | include/myisammrg.h | 12 | ||||
-rw-r--r--[-rwxr-xr-x] | include/mysql_version.h.in | 0 | ||||
-rw-r--r-- | include/queues.h | 3 |
3 files changed, 12 insertions, 3 deletions
diff --git a/include/myisammrg.h b/include/myisammrg.h index cf18e407962..64c2067b70f 100644 --- a/include/myisammrg.h +++ b/include/myisammrg.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, @@ -30,6 +30,8 @@ extern "C" { #include <myisam.h> #endif +#include <queues.h> + #define MYRG_NAME_EXT ".MRG" /* Param to/from myrg_info */ @@ -60,6 +62,7 @@ typedef struct st_myrg_info uint tables,options,reclength; my_bool cache_in_use; LIST open_list; + QUEUE by_key; } MYRG_INFO; @@ -70,6 +73,9 @@ extern int myrg_delete(MYRG_INFO *file,const byte *buff); extern MYRG_INFO *myrg_open(const char *name,int mode,int wait_if_locked); extern int myrg_panic(enum ha_panic_function function); extern int myrg_rfirst(MYRG_INFO *file,byte *buf,int inx); +extern int myrg_rlast(MYRG_INFO *file,byte *buf,int inx); +extern int myrg_rnext(MYRG_INFO *file,byte *buf,int inx); +extern int myrg_rprev(MYRG_INFO *file,byte *buf,int inx); extern int myrg_rkey(MYRG_INFO *file,byte *buf,int inx,const byte *key, uint key_len, enum ha_rkey_function search_flag); extern int myrg_rrnd(MYRG_INFO *file,byte *buf,ulonglong pos); diff --git a/include/mysql_version.h.in b/include/mysql_version.h.in index 7cfef34176e..7cfef34176e 100755..100644 --- a/include/mysql_version.h.in +++ b/include/mysql_version.h.in diff --git a/include/queues.h b/include/queues.h index 99001bfbf6d..73907327e4e 100644 --- a/include/queues.h +++ b/include/queues.h @@ -46,6 +46,9 @@ typedef struct st_queue { int init_queue(QUEUE *queue,uint max_elements,uint offset_to_key, pbool max_at_top, int (*compare)(void *,byte *, byte *), void *first_cmp_arg); +int reinit_queue(QUEUE *queue,uint max_elements,uint offset_to_key, + pbool max_at_top, int (*compare)(void *,byte *, byte *), + void *first_cmp_arg); void delete_queue(QUEUE *queue); void queue_insert(QUEUE *queue,byte *element); byte *queue_remove(QUEUE *queue,uint idx); |