diff options
author | thek@kpdesk.mysql.com <> | 2007-01-11 14:11:58 +0100 |
---|---|---|
committer | thek@kpdesk.mysql.com <> | 2007-01-11 14:11:58 +0100 |
commit | 1802d5aabbe71b4a0705bf358b69ce35fc812972 (patch) | |
tree | 09f88cb0fce9aa5ac02be85b962905abb2a27798 /mysys/mf_iocache.c | |
parent | 472ff94b4dc5dd17d52bb3a73c7ff64995b32b28 (diff) | |
parent | 0982a1d9b44abd5d61f6259b439950c2c919bcd3 (diff) | |
download | mariadb-git-1802d5aabbe71b4a0705bf358b69ce35fc812972.tar.gz |
Merge kpettersson@bk-internal:/home/bk/mysql-4.1-maint
into kpdesk.mysql.com:/home/thek/dev/mysql-4.1-maint
Diffstat (limited to 'mysys/mf_iocache.c')
-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 a91002d3b4c..00097d32dc0 100644 --- a/mysys/mf_iocache.c +++ b/mysys/mf_iocache.c @@ -338,7 +338,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; } |