summaryrefslogtreecommitdiff
path: root/mysys/my_seek.c
diff options
context:
space:
mode:
authorunknown <svoj@mysql.com/june.mysql.com>2007-05-17 15:23:59 +0500
committerunknown <svoj@mysql.com/june.mysql.com>2007-05-17 15:23:59 +0500
commita656c71e8ae765ea194a59a69d440d203308f235 (patch)
tree00c1be5d739463a37fdc3ca3a3bb89e581972aa8 /mysys/my_seek.c
parent6e09887f5d4ef9c09c17af8dc4912201cc153b2b (diff)
downloadmariadb-git-a656c71e8ae765ea194a59a69d440d203308f235.tar.gz
Addition to fix for
BUG#25712 - insert delayed and check table run together report crashed tables Fixed wrongly applied patch.
Diffstat (limited to 'mysys/my_seek.c')
-rw-r--r--mysys/my_seek.c2
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