diff options
Diffstat (limited to 'mysys/my_seek.c')
-rw-r--r-- | mysys/my_seek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_seek.c b/mysys/my_seek.c index cb0fe75d7e5..805a5654ffc 100644 --- a/mysys/my_seek.c +++ b/mysys/my_seek.c @@ -58,7 +58,7 @@ my_off_t my_seek(File fd, my_off_t pos, int whence, { pthread_mutex_lock(&my_file_info[fd].mutex); newpos= lseek(fd, pos, whence); - pthread_mutex_lock(&my_file_info[fd].mutex); + pthread_mutex_unlock(&my_file_info[fd].mutex); } else #endif |