diff options
author | serg@sergbook.mysql.com <> | 2002-07-14 21:47:46 +0200 |
---|---|---|
committer | serg@sergbook.mysql.com <> | 2002-07-14 21:47:46 +0200 |
commit | 2fe3fec4e49c2b2c123b5215c96b5a5fb468ca7f (patch) | |
tree | b53b24f6e33023d7d8ec76bbad1101b24ec1c504 /mysys/mf_iocache.c | |
parent | 3f6491e3eb2ef6708dc94495c72d5c11d4428c4f (diff) | |
download | mariadb-git-2fe3fec4e49c2b2c123b5215c96b5a5fb468ca7f.tar.gz |
parallel repair needs rec_buff local for thread !!!
Diffstat (limited to 'mysys/mf_iocache.c')
-rw-r--r-- | mysys/mf_iocache.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c index f5e381cf026..b141e341016 100644 --- a/mysys/mf_iocache.c +++ b/mysys/mf_iocache.c @@ -524,13 +524,6 @@ int _my_b_read_r(register IO_CACHE *info, byte *Buffer, uint Count) } if (lock_io_cache(info)) { -#if 0 && SAFE_MUTEX -#define PRINT_LOCK(M) printf("Thread %d: mutex is %s\n", my_thread_id(), \ - (((safe_mutex_t *)(M))->count ? "Locked" : "Unlocked")) -#else -#define PRINT_LOCK(M) -#endif - PRINT_LOCK(&info->share->mutex); info->share->active=info; if (info->seek_not_done) /* File touched, do seek */ VOID(my_seek(info->file,pos_in_file,MY_SEEK_SET,MYF(0))); @@ -539,7 +532,6 @@ int _my_b_read_r(register IO_CACHE *info, byte *Buffer, uint Count) info->error=(len == (int)length ? 0 : len); info->pos_in_file=pos_in_file; unlock_io_cache(info); - PRINT_LOCK(&info->share->mutex); } else { @@ -547,7 +539,6 @@ int _my_b_read_r(register IO_CACHE *info, byte *Buffer, uint Count) info->read_end= info->share->active->read_end; info->pos_in_file= info->share->active->pos_in_file; len= (info->error == -1 ? -1 : info->read_end-info->buffer); - PRINT_LOCK(&info->share->mutex); } info->read_pos=info->buffer; info->seek_not_done=0; |