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
commit096a22d9a0be577f4a7004145160956435429962 (patch)
treea4cd07574058b941790e187df5c63d9fafe4a2eb /mysys/mf_iocache.c
parent8820f80a771ea2f420260664350ff3af51c8a63d (diff)
parentb08627f93f3fa80084f7f76d1904170c3e389823 (diff)
downloadmariadb-git-096a22d9a0be577f4a7004145160956435429962.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.