Commit 3a5aa1f8 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1655

rename some more functions, remove extraneous commented out code

git-svn-id: file:///svn/mysql/tokudb-engine/src@11087 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8f5b475a
...@@ -1227,7 +1227,7 @@ u_int32_t ha_tokudb::place_key_into_mysql_buff(KEY* key_info, uchar * record, uc ...@@ -1227,7 +1227,7 @@ u_int32_t ha_tokudb::place_key_into_mysql_buff(KEY* key_info, uchar * record, uc
// HOPEFULLY TEMPORARY // HOPEFULLY TEMPORARY
// //
assert(table->s->db_low_byte_first); assert(table->s->db_low_byte_first);
pos = unpack_toku_field( pos = unpack_toku_key_field(
record + field_offset(key_part->field, table), record + field_offset(key_part->field, table),
pos, pos,
key_part->field, key_part->field,
...@@ -1282,11 +1282,6 @@ u_int32_t ha_tokudb::place_key_into_dbt_buff(KEY* key_info, uchar * buff, const ...@@ -1282,11 +1282,6 @@ u_int32_t ha_tokudb::place_key_into_dbt_buff(KEY* key_info, uchar * buff, const
if (record[null_offset] & key_part->field->null_bit) { if (record[null_offset] & key_part->field->null_bit) {
*curr_buff++ = NULL_COL_VAL; *curr_buff++ = NULL_COL_VAL;
*has_null = true; *has_null = true;
//
// fractal tree does not handle this falg at the moment
// so commenting out for now
//
//key->flags |= DB_DBT_DUPOK;
continue; continue;
} }
*curr_buff++ = NONNULL_COL_VAL; // Store NOT NULL marker *curr_buff++ = NONNULL_COL_VAL; // Store NOT NULL marker
...@@ -1300,7 +1295,7 @@ u_int32_t ha_tokudb::place_key_into_dbt_buff(KEY* key_info, uchar * buff, const ...@@ -1300,7 +1295,7 @@ u_int32_t ha_tokudb::place_key_into_dbt_buff(KEY* key_info, uchar * buff, const
// because key_part->offset is SET INCORRECTLY in add_index // because key_part->offset is SET INCORRECTLY in add_index
// filed ticket 862 to look into this // filed ticket 862 to look into this
// //
curr_buff = pack_toku_field( curr_buff = pack_toku_key_field(
curr_buff, curr_buff,
(uchar *) (record + field_offset(key_part->field, table)), (uchar *) (record + field_offset(key_part->field, table)),
key_part->field, key_part->field,
...@@ -1437,7 +1432,7 @@ DBT *ha_tokudb::pack_key(DBT * key, uint keynr, uchar * buff, const uchar * key_ ...@@ -1437,7 +1432,7 @@ DBT *ha_tokudb::pack_key(DBT * key, uint keynr, uchar * buff, const uchar * key_
} }
assert(table->s->db_low_byte_first); assert(table->s->db_low_byte_first);
buff = pack_key_toku_field( buff = pack_key_toku_key_field(
buff, buff,
(uchar *) key_ptr + offset, (uchar *) key_ptr + offset,
key_part->field, key_part->field,
......
...@@ -1055,7 +1055,7 @@ inline int compare_toku_field( ...@@ -1055,7 +1055,7 @@ inline int compare_toku_field(
// //
// at the moment, this returns new position in buffer // at the moment, this returns new position in buffer
// //
uchar* pack_toku_field( uchar* pack_toku_key_field(
uchar* to_tokudb, uchar* to_tokudb,
uchar* from_mysql, uchar* from_mysql,
Field* field, Field* field,
...@@ -1142,7 +1142,7 @@ exit: ...@@ -1142,7 +1142,7 @@ exit:
return new_pos; return new_pos;
} }
uchar* pack_key_toku_field( uchar* pack_key_toku_key_field(
uchar* to_tokudb, uchar* to_tokudb,
uchar* from_mysql, uchar* from_mysql,
Field* field, Field* field,
...@@ -1157,7 +1157,7 @@ uchar* pack_key_toku_field( ...@@ -1157,7 +1157,7 @@ uchar* pack_key_toku_field(
case (toku_type_float): case (toku_type_float):
case (toku_type_fixbinary): case (toku_type_fixbinary):
case (toku_type_fixstring): case (toku_type_fixstring):
new_pos = pack_toku_field(to_tokudb, from_mysql, field, key_part_length); new_pos = pack_toku_key_field(to_tokudb, from_mysql, field, key_part_length);
goto exit; goto exit;
case (toku_type_varbinary): case (toku_type_varbinary):
new_pos = pack_toku_varbinary( new_pos = pack_toku_varbinary(
...@@ -1189,7 +1189,7 @@ exit: ...@@ -1189,7 +1189,7 @@ exit:
} }
uchar* unpack_toku_field( uchar* unpack_toku_key_field(
uchar* to_mysql, uchar* to_mysql,
uchar* from_tokudb, uchar* from_tokudb,
Field* field, Field* field,
......
...@@ -30,21 +30,21 @@ typedef enum { ...@@ -30,21 +30,21 @@ typedef enum {
inline TOKU_TYPE mysql_to_toku_type (enum_field_types mysql_type); inline TOKU_TYPE mysql_to_toku_type (enum_field_types mysql_type);
uchar* pack_toku_field( uchar* pack_toku_key_field(
uchar* to_tokudb, uchar* to_tokudb,
uchar* from_mysql, uchar* from_mysql,
Field* field, Field* field,
u_int32_t key_part_length //I really hope this is temporary as I phase out the pack_cmp stuff u_int32_t key_part_length //I really hope this is temporary as I phase out the pack_cmp stuff
); );
uchar* pack_key_toku_field( uchar* pack_key_toku_key_field(
uchar* to_tokudb, uchar* to_tokudb,
uchar* from_mysql, uchar* from_mysql,
Field* field, Field* field,
u_int32_t key_part_length //I really hope this is temporary as I phase out the pack_cmp stuff u_int32_t key_part_length //I really hope this is temporary as I phase out the pack_cmp stuff
); );
uchar* unpack_toku_field( uchar* unpack_toku_key_field(
uchar* to_mysql, uchar* to_mysql,
uchar* from_tokudb, uchar* from_tokudb,
Field* field, Field* field,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment