summaryrefslogtreecommitdiff
path: root/storage/myisam
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2010-06-29 18:28:36 +0400
committerKonstantin Osipov <kostja@sun.com>2010-06-29 18:28:36 +0400
commitcace7d3038fdd8f97c290a3ee60aa273bfa0f4b7 (patch)
tree7d00febda4d9065a93b3eda6544c5ff4c608c40a /storage/myisam
parent02599d659a3b52b1a4715b1913816a54e2b324e9 (diff)
downloadmariadb-git-cace7d3038fdd8f97c290a3ee60aa273bfa0f4b7.tar.gz
Salvage comments added by Ingo while working on
Bug#52114 and Bug#50788. The bugs themselves are regressions that are introduced by an incomplete fix for Bug#36171 and will not be pushed.
Diffstat (limited to 'storage/myisam')
-rw-r--r--storage/myisam/mi_statrec.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/storage/myisam/mi_statrec.c b/storage/myisam/mi_statrec.c
index 74fca5902f5..7d595916d78 100644
--- a/storage/myisam/mi_statrec.c
+++ b/storage/myisam/mi_statrec.c
@@ -273,7 +273,12 @@ int _mi_read_rnd_static_record(MI_INFO *info, uchar *buf,
DBUG_RETURN(error);
}
- /* Read record with cacheing */
+ /*
+ Read record with caching. If my_b_read() returns TRUE, less than the
+ requested bytes have been read. In this case rec_cache.error is
+ either -1 for a read error, or contains the number of bytes copied
+ into the buffer.
+ */
error=my_b_read(&info->rec_cache,(uchar*) buf,share->base.reclength);
if (info->s->base.pack_reclength != info->s->base.reclength && !error)
{