diff options
author | Mattias Jonsson <mattias.jonsson@sun.com> | 2008-10-29 23:01:41 +0100 |
---|---|---|
committer | Mattias Jonsson <mattias.jonsson@sun.com> | 2008-10-29 23:01:41 +0100 |
commit | b4f8f350e3ff0bdb54a5c4e8ce6fe009e43a242d (patch) | |
tree | f56d2acea55eac9e49d82d1daf469f75866c5dd9 /sql/ha_partition.h | |
parent | 71adad00d82c7144449bf1d594f79dc9c26d0998 (diff) | |
parent | 5e515bd19c56af8bc3229848ea5b401a3fcaddb1 (diff) | |
download | mariadb-git-b4f8f350e3ff0bdb54a5c4e8ce6fe009e43a242d.tar.gz |
merge
Diffstat (limited to 'sql/ha_partition.h')
-rw-r--r-- | sql/ha_partition.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sql/ha_partition.h b/sql/ha_partition.h index 601b7009434..0d86c162bde 100644 --- a/sql/ha_partition.h +++ b/sql/ha_partition.h @@ -74,9 +74,16 @@ private: handler **m_added_file; // Added parts kept for errors partition_info *m_part_info; // local reference to partition Field **m_part_field_array; // Part field array locally to save acc - uchar *m_ordered_rec_buffer; // Row and key buffer for ord. idx scan - KEY *m_curr_key_info; // Current index - uchar *m_rec0; // table->record[0] + uchar *m_ordered_rec_buffer; // Row and key buffer for ord. idx scan + /* + Current index. + When used in key_rec_cmp: If clustered pk, index compare + must compare pk if given index is same for two rows. + So normally m_curr_key_info[0]= current index and m_curr_key[1]= NULL, + and if clustered pk, [0]= current index, [1]= pk, [2]= NULL + */ + KEY *m_curr_key_info[3]; // Current index + uchar *m_rec0; // table->record[0] QUEUE m_queue; // Prio queue used by sorted read /* Since the partition handler is a handler on top of other handlers, it |