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 | 58d2372b15798bbaeffa774113e7a9f8a2c8bc0a (patch) | |
tree | f56d2acea55eac9e49d82d1daf469f75866c5dd9 /sql/ha_partition.h | |
parent | fc74c4d9e5d134c94e5ce9363450e2b7126ae390 (diff) | |
parent | d3ea7430152fad48cabd9efb8c80d177405dd090 (diff) | |
download | mariadb-git-58d2372b15798bbaeffa774113e7a9f8a2c8bc0a.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 |