mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
addresses #1655
add more comments git-svn-id: file:///svn/mysql/tokudb-engine/src@11098 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
5f635d39f8
commit
965a235372
1 changed files with 9 additions and 1 deletions
|
@ -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* to_tokudb,
|
||||
|
@ -1142,6 +1143,13 @@ exit:
|
|||
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* to_tokudb,
|
||||
uchar* from_mysql,
|
||||
|
|
Loading…
Reference in a new issue