summaryrefslogtreecommitdiff
path: root/innobase/include/rem0cmp.ic
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2004-12-28 01:34:52 +0200
committerunknown <marko@hundin.mysql.fi>2004-12-28 01:34:52 +0200
commit7ce58befd33d78e1c11872fcbc696a9cfad698c2 (patch)
tree6da5ac10b2bcc95fc1120e9a5d69928fdbe40917 /innobase/include/rem0cmp.ic
parente3c7697431c144215af2f752d5c23b5b06e29982 (diff)
downloadmariadb-git-7ce58befd33d78e1c11872fcbc696a9cfad698c2.tar.gz
InnoDB: Fix some bugs in the new record format. (Bug #7493)
innobase/btr/btr0btr.c: Remove parameter n_fields from cmp_rec_rec() innobase/btr/btr0cur.c: Remove parameter n_fields from cmp_rec_rec_with_match() innobase/btr/btr0pcur.c: Remove parameter n_fields from cmp_rec_rec() innobase/include/rem0cmp.h: Remove parameter n from cmp_rec_rec_with_match() and cmp_rec_rec() innobase/include/rem0cmp.ic: Remove parameter n from cmp_rec_rec() innobase/include/rem0rec.ic: Correct the implementation of rec_offs_nth_size() (Bug #7493) innobase/page/page0page.c: Remove parameter n_fields from cmp_rec_rec() innobase/rem/rem0cmp.c: Remove parameter n from cmp_rec_rec_with_match() innobase/rem/rem0rec.c: rec_get_offsets(): Pass the number of allocated elements to rec_offs_set_n_alloc() instead of the number of allocated bytes, so that debugging assertions are more likely to detect out-of-bounds errors.
Diffstat (limited to 'innobase/include/rem0cmp.ic')
-rw-r--r--innobase/include/rem0cmp.ic3
1 files changed, 1 insertions, 2 deletions
diff --git a/innobase/include/rem0cmp.ic b/innobase/include/rem0cmp.ic
index d4c30f25f03..b86534e0a6a 100644
--- a/innobase/include/rem0cmp.ic
+++ b/innobase/include/rem0cmp.ic
@@ -59,12 +59,11 @@ cmp_rec_rec(
rec_t* rec2, /* in: physical record */
const ulint* offsets1,/* in: rec_get_offsets(rec1, index) */
const ulint* offsets2,/* in: rec_get_offsets(rec2, index) */
- ulint n, /* in: number of fields to compare */
dict_index_t* index) /* in: data dictionary index */
{
ulint match_f = 0;
ulint match_b = 0;
- return(cmp_rec_rec_with_match(rec1, rec2, offsets1, offsets2, index, n,
+ return(cmp_rec_rec_with_match(rec1, rec2, offsets1, offsets2, index,
&match_f, &match_b));
}