Commit 413e74e1 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1655

add more comments

git-svn-id: file:///svn/mysql/tokudb-engine/src@11098 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3db777a6
...@@ -1053,7 +1053,8 @@ inline int compare_toku_field( ...@@ -1053,7 +1053,8 @@ inline int compare_toku_field(
} }
// //
// at the moment, this returns new position in buffer // packs a field from a MySQL buffer into a tokudb buffer.
// Used for inserts/updates
// //
uchar* pack_toku_key_field( uchar* pack_toku_key_field(
uchar* to_tokudb, uchar* to_tokudb,
...@@ -1142,6 +1143,13 @@ uchar* pack_toku_key_field( ...@@ -1142,6 +1143,13 @@ uchar* pack_toku_key_field(
return new_pos; return new_pos;
} }
//
// packs a field from a MySQL buffer into a tokudb buffer.
// Used for queries. The only difference between this function
// and pack_toku_key_field is that all variable sized columns
// use 2 bytes to encode the length, regardless of the field
// So varchar(4) will still use 2 bytes to encode the field
//
uchar* pack_key_toku_key_field( uchar* pack_key_toku_key_field(
uchar* to_tokudb, uchar* to_tokudb,
uchar* from_mysql, uchar* from_mysql,
......
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