diff options
author | Konstantin Osipov <kostja@sun.com> | 2010-06-29 18:28:36 +0400 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2010-06-29 18:28:36 +0400 |
commit | cace7d3038fdd8f97c290a3ee60aa273bfa0f4b7 (patch) | |
tree | 7d00febda4d9065a93b3eda6544c5ff4c608c40a /storage/myisam | |
parent | 02599d659a3b52b1a4715b1913816a54e2b324e9 (diff) | |
download | mariadb-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.c | 7 |
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) { |