Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify the version 1 format to support bucket types #663

Merged
merged 1 commit into from
Sep 19, 2013

Conversation

Vagabond
Copy link
Contributor

The new keydir format has 2 forms, as follows

<<Version:7, 0:1, BucketSize:16/integer, Bucket/binary, Key/binary>>
<<Version:7, 1:1, TypeSize:16/integer, Type/binary, BucketSize:16/integer, Bucket/binary, Key/binary>>

The 8th bit of the binary is the bit that indicates if a bucket type is
present, and tells the decoder which form to expect.

Both the eunit tests for riak_kv_bitcask_backend and the bucket_types riak_test pass against this branch.

cc @evanmcc

The new keydir format has 2 forms, as follows

<<Version:7, 0:1, BucketSize:16/integer, Bucket/binary, Key/binary>>
<<Version:7, 1:1, TypeSize:16/integer, Type/binary, BucketSize:16/integer, Bucket/binary, Key/binary>>

The 8th bit of the binary is the bit that indicates if a bucket type is
present, and tells the decoder which form to expect.
evanmcc added a commit that referenced this pull request Sep 19, 2013
Modify the version 1 format to support bucket types
@evanmcc evanmcc merged commit 070712c into pevm-keydir-overhead-support Sep 19, 2013
@seancribbs seancribbs deleted the adt-keydir-overhead branch April 1, 2015 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants