diff options
author | thek@kpdesk.mysql.com <> | 2007-01-11 14:08:12 +0100 |
---|---|---|
committer | thek@kpdesk.mysql.com <> | 2007-01-11 14:08:12 +0100 |
commit | f7688d5f107522ffee172ab14dd193172f647390 (patch) | |
tree | 21fc6fe23decbfab579c64aeed4227fdde80ab90 /mysys | |
parent | 682596d7ce081c6382316f9efa7a8b7e6881bdf2 (diff) | |
parent | 0982a1d9b44abd5d61f6259b439950c2c919bcd3 (diff) | |
download | mariadb-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.c | 6 |
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; } |