diff options
author | unknown <thek@kpdesk.mysql.com> | 2007-01-11 15:21:06 +0100 |
---|---|---|
committer | unknown <thek@kpdesk.mysql.com> | 2007-01-11 15:21:06 +0100 |
commit | df3219a026aeb771370cd99e0e924921cad54eff (patch) | |
tree | eedbad24e8418949cd322710a2681a3c01606062 /mysys | |
parent | 90bec9ce3d34a2058578e28ae4c6af5c43cfcfb5 (diff) | |
parent | 32b14754aaa8fce3eeb19e5af19755530cf8c64c (diff) | |
download | mariadb-git-df3219a026aeb771370cd99e0e924921cad54eff.tar.gz |
Merge kpettersson@bk-internal:/home/bk/mysql-5.0-maint
into kpdesk.mysql.com:/home/thek/dev/mysql-5.0-maint
mysys/mf_iocache.c:
Auto merged
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 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; } |