summaryrefslogtreecommitdiff
path: root/innobase/dict/dict0dict.c
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2004-12-29 12:09:23 +0200
committerunknown <marko@hundin.mysql.fi>2004-12-29 12:09:23 +0200
commit44728324f0abe3e327fc2095a99e647b1c44dd8d (patch)
tree731c3470a5161bf46ef2e8824387f2707ac13bc1 /innobase/dict/dict0dict.c
parent59b274eab8ff97461f7c88f9f0e347a35deb9842 (diff)
downloadmariadb-git-44728324f0abe3e327fc2095a99e647b1c44dd8d.tar.gz
InnoDB: Remove dependency on rem0rec.ic from dict0dict.ic (Bug #7464)
innobase/dict/dict0dict.c: Make dict_is_mixed_table_rec() a non-inlined function. innobase/include/dict0dict.h: Make dict_is_mixed_table_rec() a non-inlined function. Remove dict_index_rec_get_sys_col(). innobase/include/dict0dict.ic: Make dict_is_mixed_table_rec() a non-inlined function. Remove dict_index_rec_get_sys_col(). innobase/trx/trx0rec.c: Replace the two calls to the removed function dict_index_rec_get_sys_col() with equivalent code.
Diffstat (limited to 'innobase/dict/dict0dict.c')
-rw-r--r--innobase/dict/dict0dict.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/innobase/dict/dict0dict.c b/innobase/dict/dict0dict.c
index 0aaa3a9a721..f8906a77abd 100644
--- a/innobase/dict/dict0dict.c
+++ b/innobase/dict/dict0dict.c
@@ -3689,6 +3689,29 @@ dict_tree_find_index_for_tuple(
return(index);
}
+/***********************************************************************
+Checks if a table which is a mixed cluster member owns a record. */
+
+ibool
+dict_is_mixed_table_rec(
+/*====================*/
+ /* out: TRUE if the record belongs to this
+ table */
+ dict_table_t* table, /* in: table in a mixed cluster */
+ rec_t* rec) /* in: user record in the clustered index */
+{
+ byte* mix_id_field;
+ ulint len;
+
+ ut_ad(!table->comp);
+
+ mix_id_field = rec_get_nth_field_old(rec,
+ table->mix_len, &len);
+
+ return(len == table->mix_id_len
+ && !ut_memcmp(table->mix_id_buf, mix_id_field, len));
+}
+
/**************************************************************************
Checks that a tuple has n_fields_cmp value in a sensible range, so that
no comparison can occur with the page number field in a node pointer. */