forked from percona/percona-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue percona#28: Change PK storage format to support unpack_info
Summary: This changes the PK storage format so that it can contain unpack_info. Currently, the storage format looks like this: | null bits | records for non-packable or non-PK columns | checksum | I am changing the format so that it looks like this: | null bits | unpack_info | records for non-packable or non-PK columns | checksum | The `unpack_info` field looks exactly the same as the one in secondary keys. It is a one-byte tag, followed by two bytes of length information, followed by the actual unpack information. Note that this field may be missing if none of the key columns have a make unpack function set. The main change that needed to be done to support this is to have the `m_make_unpack_info_func` function be available in both `Rdb_field_packing` for `Rdb_key_def::pack_record` and `Rdb_field_encoder` for `ha_rocksdb::convert_record_to_storage_format`. Note that this change isn't active since `PRIMARY_FORMAT_VERSION_UNPACK_INFO` is not the latest. Reviewed By: jkedgar Differential Revision: https://reviews.facebook.net/D59469
- Loading branch information
Showing
5 changed files
with
271 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.