summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorserg@serg.mylan <>2004-03-25 11:33:41 +0100
committerserg@serg.mylan <>2004-03-25 11:33:41 +0100
commit01cabfe58c8a0fb1eca4a24000fd832965ef361b (patch)
tree6902467ee379b418780ce93ad4a0f0d0860c3624 /mysys
parent2d970b2ea4f1cb54feea16fc48d75e704e1410c7 (diff)
parentd8a9a8267bfb0e759a5fcda1cb2f3beba6c3c7ca (diff)
downloadmariadb-git-01cabfe58c8a0fb1eca4a24000fd832965ef361b.tar.gz
Merge bk-internal:/home/bk/mysql-4.0/
into serg.mylan:/usr/home/serg/Abk/mysql-4.0
Diffstat (limited to 'mysys')
-rw-r--r--mysys/mf_iocache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c
index c5bd7db9677..8fb93dc4780 100644
--- a/mysys/mf_iocache.c
+++ b/mysys/mf_iocache.c
@@ -481,7 +481,8 @@ static int lock_io_cache(IO_CACHE *info, my_off_t pos)
while (!s->active || s->active->pos_in_file < pos)
pthread_cond_wait(&s->cond, &s->mutex);
- if (s->total < total)
+ if (s->total < total &&
+ (!s->active || s->active->pos_in_file < pos))
return 1;
pthread_mutex_unlock(&s->mutex);