diff options
author | sergefp@mysql.com <> | 2005-10-18 14:04:14 +0400 |
---|---|---|
committer | sergefp@mysql.com <> | 2005-10-18 14:04:14 +0400 |
commit | b91173af11b92f61417f826e4980387219478047 (patch) | |
tree | b67aef0810c2a280d19c1888ea8171c81fdbedf3 /sql/records.cc | |
parent | e9f2f9437a9c7be83db93d3461ce6e77245d1df4 (diff) | |
download | mariadb-git-b91173af11b92f61417f826e4980387219478047.tar.gz |
BUG#12915: post-review fixes
Diffstat (limited to 'sql/records.cc')
-rw-r--r-- | sql/records.cc | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/sql/records.cc b/sql/records.cc index 1bf585ae46a..9150024d4b8 100644 --- a/sql/records.cc +++ b/sql/records.cc @@ -235,13 +235,16 @@ static int rr_quick(READ_RECORD *info) /* - Read next index record. The calling convention of this function is - compatible with READ_RECORD::read_record. + A READ_RECORD::read_record implementation that reads index sequentially SYNOPSIS rr_index() info Scan info - + + DESCRIPTION + Read the next index record (in forward direction) and translate return + value. + RETURN 0 Ok -1 End of records @@ -271,13 +274,13 @@ static int rr_index(READ_RECORD *info) if (tmp != HA_ERR_RECORD_DELETED) { if (tmp == HA_ERR_END_OF_FILE) - tmp= -1; + tmp= -1; else { - if (info->print_error) - info->table->file->print_error(tmp,MYF(0)); - if (tmp < 0) // Fix negative BDB errno - tmp=1; + if (info->print_error) + info->table->file->print_error(tmp,MYF(0)); + if (tmp < 0) // Fix negative BDB errno + tmp=1; } break; } |