summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorthek@kpdesk.mysql.com <>2007-01-11 14:08:12 +0100
committerthek@kpdesk.mysql.com <>2007-01-11 14:08:12 +0100
commitf7688d5f107522ffee172ab14dd193172f647390 (patch)
tree21fc6fe23decbfab579c64aeed4227fdde80ab90 /mysys
parent682596d7ce081c6382316f9efa7a8b7e6881bdf2 (diff)
parent0982a1d9b44abd5d61f6259b439950c2c919bcd3 (diff)
downloadmariadb-git-f7688d5f107522ffee172ab14dd193172f647390.tar.gz
Merge kpdesk.mysql.com:/home/thek/dev/mysql-4.1-maint
into kpdesk.mysql.com:/home/thek/dev/mysql-5.0-maint
Diffstat (limited to 'mysys')
-rw-r--r--mysys/mf_iocache.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c
index d458bf528d0..f8b4434a936 100644
--- a/mysys/mf_iocache.c
+++ b/mysys/mf_iocache.c
@@ -342,7 +342,11 @@ my_bool reinit_io_cache(IO_CACHE *info, enum cache_type type,
if (info->type == READ_CACHE)
{
info->write_end=info->write_buffer+info->buffer_length;
- info->seek_not_done=1;
+ /*
+ Trigger a new seek only if we have a valid
+ file handle.
+ */
+ info->seek_not_done= (info->file >= 0);
}
info->end_of_file = ~(my_off_t) 0;
}