diff options
author | unknown <istruewing@chilla.local> | 2006-10-11 17:57:47 +0200 |
---|---|---|
committer | unknown <istruewing@chilla.local> | 2006-10-11 17:57:47 +0200 |
commit | 05d8dc82b4cec5a583b53d5d5cf10a7f86e77594 (patch) | |
tree | 1c500053f455af38dba9c498ee43b3b219adde3a /include | |
parent | 4ae5ba2ded4b8605fca30e7aa837d5a0487116d4 (diff) | |
parent | 8f8340ab65e55dd0a7d2899728c6e0e707fca241 (diff) | |
download | mariadb-git-05d8dc82b4cec5a583b53d5d5cf10a7f86e77594.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0-engines
into chilla.local:/home/mydev/mysql-5.0-bug8283
include/my_sys.h:
Auto merged
myisam/myisamdef.h:
Auto merged
Diffstat (limited to 'include')
-rw-r--r-- | include/my_sys.h | 22 | ||||
-rw-r--r-- | include/myisam.h | 2 |
2 files changed, 15 insertions, 9 deletions
diff --git a/include/my_sys.h b/include/my_sys.h index 2c0ef955477..ebb518314b2 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -351,12 +351,18 @@ typedef int (*IO_CACHE_CALLBACK)(struct st_io_cache*); #ifdef THREAD typedef struct st_io_cache_share { - /* to sync on reads into buffer */ - pthread_mutex_t mutex; - pthread_cond_t cond; - int count, total; - /* actual IO_CACHE that filled the buffer */ - struct st_io_cache *active; + pthread_mutex_t mutex; /* To sync on reads into buffer. */ + pthread_cond_t cond; /* To wait for signals. */ + pthread_cond_t cond_writer; /* For a synchronized writer. */ + /* Offset in file corresponding to the first byte of buffer. */ + my_off_t pos_in_file; + /* If a synchronized write cache is the source of the data. */ + struct st_io_cache *source_cache; + byte *buffer; /* The read buffer. */ + byte *read_end; /* Behind last valid byte of buffer. */ + int running_threads; /* threads not in lock. */ + int total_threads; /* threads sharing the cache. */ + int error; /* Last error. */ #ifdef NOT_YET_IMPLEMENTED /* whether the structure should be free'd */ my_bool alloced; @@ -720,8 +726,8 @@ extern void setup_io_cache(IO_CACHE* info); extern int _my_b_read(IO_CACHE *info,byte *Buffer,uint Count); #ifdef THREAD extern int _my_b_read_r(IO_CACHE *info,byte *Buffer,uint Count); -extern void init_io_cache_share(IO_CACHE *info, - IO_CACHE_SHARE *s, uint num_threads); +extern void init_io_cache_share(IO_CACHE *read_cache, IO_CACHE_SHARE *cshare, + IO_CACHE *write_cache, uint num_threads); extern void remove_io_thread(IO_CACHE *info); #endif extern int _my_b_seq_read(IO_CACHE *info,byte *Buffer,uint Count); diff --git a/include/myisam.h b/include/myisam.h index 321952dcf4c..95852366251 100644 --- a/include/myisam.h +++ b/include/myisam.h @@ -419,7 +419,7 @@ typedef struct st_mi_check_param uint testflag, key_cache_block_size; uint8 language; my_bool using_global_keycache, opt_lock_memory, opt_follow_links; - my_bool retry_repair, force_sort, calc_checksum; + my_bool retry_repair, force_sort; char temp_filename[FN_REFLEN],*isam_file_name; MY_TMPDIR *tmpdir; int tmpfile_createflag; |