diff options
author | monty@tik.mysql.com <> | 2000-10-11 00:06:37 +0300 |
---|---|---|
committer | monty@tik.mysql.com <> | 2000-10-11 00:06:37 +0300 |
commit | 09dce662e273113029cc404af07d82b9c9c56fb6 (patch) | |
tree | cf18eb0d045153270d68aec8884a4732e953e883 /mysys/my_pread.c | |
parent | 16f11f94b2fa7c7fca19fb5160b27c902c446a3c (diff) | |
download | mariadb-git-09dce662e273113029cc404af07d82b9c9c56fb6.tar.gz |
Automatic repair of MyISAM tables + portability fixes
Diffstat (limited to 'mysys/my_pread.c')
-rw-r--r-- | mysys/my_pread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_pread.c b/mysys/my_pread.c index 74bb7783af5..4e0de71bcf5 100644 --- a/mysys/my_pread.c +++ b/mysys/my_pread.c @@ -80,7 +80,6 @@ uint my_pread(File Filedes, byte *Buffer, uint Count, my_off_t offset, uint my_pwrite(int Filedes, const byte *Buffer, uint Count, my_off_t offset, myf MyFlags) { - int error; uint writenbytes,errors; ulong written; DBUG_ENTER("my_pwrite"); @@ -91,6 +90,7 @@ uint my_pwrite(int Filedes, const byte *Buffer, uint Count, my_off_t offset, for (;;) { #ifndef HAVE_PREAD + int error; writenbytes= (uint) -1; pthread_mutex_lock(&my_file_info[Filedes].mutex); error=(lseek(Filedes, offset, MY_SEEK_SET) != -1L && |