summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorthek@kpdesk.mysql.com <>2007-01-11 15:23:34 +0100
committerthek@kpdesk.mysql.com <>2007-01-11 15:23:34 +0100
commit36fc42cb105ad689fab04a55cef70a7df0b238ba (patch)
tree7a74d1debcfc465235c4db825720aba20fec8eeb /mysys
parent965aa4c74fb85ed4ce71ff17dc8614c6dc98fe78 (diff)
parent75d91dedac68e904f3d94454e96aee5ebb54167e (diff)
downloadmariadb-git-36fc42cb105ad689fab04a55cef70a7df0b238ba.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, 1 insertions, 5 deletions
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c
index 25c8ceeff8b..fc81f0bad03 100644
--- a/mysys/mf_iocache.c
+++ b/mysys/mf_iocache.c
@@ -343,11 +343,7 @@ 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;
- /*
- Trigger a new seek only if we have a valid
- file handle.
- */
- info->seek_not_done= (info->file >= 0);
+ info->seek_not_done=1;
}
info->end_of_file = ~(my_off_t) 0;
}