diff options
author | thek@kpdesk.mysql.com <> | 2007-01-11 15:21:06 +0100 |
---|---|---|
committer | thek@kpdesk.mysql.com <> | 2007-01-11 15:21:06 +0100 |
commit | 965aa4c74fb85ed4ce71ff17dc8614c6dc98fe78 (patch) | |
tree | eedbad24e8418949cd322710a2681a3c01606062 /mysys/mf_iocache.c | |
parent | d9ad0cd0ba06bd3558d3b8c48cce141c80dc7475 (diff) | |
parent | f7688d5f107522ffee172ab14dd193172f647390 (diff) | |
download | mariadb-git-965aa4c74fb85ed4ce71ff17dc8614c6dc98fe78.tar.gz |
Merge kpettersson@bk-internal:/home/bk/mysql-5.0-maint
into kpdesk.mysql.com:/home/thek/dev/mysql-5.0-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 fc81f0bad03..25c8ceeff8b 100644 --- a/mysys/mf_iocache.c +++ b/mysys/mf_iocache.c @@ -343,7 +343,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; } |