Skip to content

Commit 73cdbb4

Browse files
author
istruewing@chilla.local
committed
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into chilla.local:/home/mydev/mysql-4.1-merge
2 parents de22ac7 + 647dee0 commit 73cdbb4

File tree

11 files changed

+1150
-240
lines changed

11 files changed

+1150
-240
lines changed

include/my_sys.h

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,18 @@ typedef int (*IO_CACHE_CALLBACK)(struct st_io_cache*);
325325
#ifdef THREAD
326326
typedef struct st_io_cache_share
327327
{
328-
/* to sync on reads into buffer */
329-
pthread_mutex_t mutex;
330-
pthread_cond_t cond;
331-
int count, total;
332-
/* actual IO_CACHE that filled the buffer */
333-
struct st_io_cache *active;
328+
pthread_mutex_t mutex; /* To sync on reads into buffer. */
329+
pthread_cond_t cond; /* To wait for signals. */
330+
pthread_cond_t cond_writer; /* For a synchronized writer. */
331+
/* Offset in file corresponding to the first byte of buffer. */
332+
my_off_t pos_in_file;
333+
/* If a synchronized write cache is the source of the data. */
334+
struct st_io_cache *source_cache;
335+
byte *buffer; /* The read buffer. */
336+
byte *read_end; /* Behind last valid byte of buffer. */
337+
int running_threads; /* threads not in lock. */
338+
int total_threads; /* threads sharing the cache. */
339+
int error; /* Last error. */
334340
#ifdef NOT_YET_IMPLEMENTED
335341
/* whether the structure should be free'd */
336342
my_bool alloced;
@@ -672,8 +678,8 @@ extern void setup_io_cache(IO_CACHE* info);
672678
extern int _my_b_read(IO_CACHE *info,byte *Buffer,uint Count);
673679
#ifdef THREAD
674680
extern int _my_b_read_r(IO_CACHE *info,byte *Buffer,uint Count);
675-
extern void init_io_cache_share(IO_CACHE *info,
676-
IO_CACHE_SHARE *s, uint num_threads);
681+
extern void init_io_cache_share(IO_CACHE *read_cache, IO_CACHE_SHARE *cshare,
682+
IO_CACHE *write_cache, uint num_threads);
677683
extern void remove_io_thread(IO_CACHE *info);
678684
#endif
679685
extern int _my_b_seq_read(IO_CACHE *info,byte *Buffer,uint Count);

include/myisam.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ typedef struct st_mi_check_param
345345
uint testflag, key_cache_block_size;
346346
uint8 language;
347347
my_bool using_global_keycache, opt_lock_memory, opt_follow_links;
348-
my_bool retry_repair, force_sort, calc_checksum;
348+
my_bool retry_repair, force_sort;
349349
char temp_filename[FN_REFLEN],*isam_file_name;
350350
MY_TMPDIR *tmpdir;
351351
int tmpfile_createflag;

0 commit comments

Comments
 (0)