summaryrefslogtreecommitdiff
path: root/mysys/mf_iocache.c
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-09-10 09:37:55 +0300
committerMichael Widenius <monty@askmonty.org>2011-09-10 09:37:55 +0300
commit0db9c26b05439f9d6fc29234966f50d8e393dfe2 (patch)
treea4cd07574058b941790e187df5c63d9fafe4a2eb /mysys/mf_iocache.c
parentb80641b36cb43206a118ee84fccd90d08fbb8df4 (diff)
parent8fb10c24d74cbddbfd6da0b5f4ea9409f8f88e57 (diff)
downloadmariadb-git-0db9c26b05439f9d6fc29234966f50d8e393dfe2.tar.gz
Automatic merge
Diffstat (limited to 'mysys/mf_iocache.c')
-rw-r--r--mysys/mf_iocache.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c
index bf7c208d4d2..876ee941f27 100644
--- a/mysys/mf_iocache.c
+++ b/mysys/mf_iocache.c
@@ -178,11 +178,9 @@ int init_io_cache(IO_CACHE *info, File file, size_t cachesize,
if ((pos == (my_off_t) -1) && (my_errno == ESPIPE))
{
/*
- This kind of object doesn't support seek() or tell(). Don't set a
- flag that will make us again try to seek() later and fail.
- */
- info->seek_not_done= 0;
- /*
+ This kind of object doesn't support seek() or tell(). Don't set a
+ seek_not_done that will make us again try to seek() later and fail.
+
Additionally, if we're supposed to start somewhere other than the
the beginning of whatever this file is, then somebody made a bad
assumption.