/* SQL data tuple struct */ typedef struct dtuple_struct dtuple_t; /** Structure for an SQL data tuple of fields (logical record) */ struct dtuple_struct { ulint info_bits; /*!< info bits of an index record: the default is 0; this field is used if an index record is built from a data tuple */ ulint n_fields; /*!< number of fields in dtuple */ ulint n_fields_cmp; /*!< number of fields which should be used in comparison services of rem0cmp.*; the index search is performed by comparing only these fields, others are ignored; the default value in dtuple creation is the same value as n_fields */ dfield_t* fields; /*!< fields */ //详见 UT_LIST_NODE_T(dtuple_t) tuple_list; /*!< data tuples can be linked into a list using this field */ #ifdef UNIV_DEBUG ulint magic_n; /*!< magic number, used in debug assertions */ /** Value of dtuple_struct::magic_n */ # define DATA_TUPLE_MAGIC_N 65478679 #endif /* UNIV_DEBUG */ };
时间: 2024-10-11 11:43:36