Vclock metadata change
Test performance ocntinues to be worse since the vlock metadata change. Reversing out juts in case.
This commit is contained in:
parent
756b46bb4d
commit
f108871691
1 changed files with 3 additions and 2 deletions
|
@ -433,7 +433,8 @@ riak_extract_metadata(ObjBin, Size) ->
|
||||||
%% <<?MAGIC:8/integer, ?V1_VERS:8/integer, VclockLen:32/integer,
|
%% <<?MAGIC:8/integer, ?V1_VERS:8/integer, VclockLen:32/integer,
|
||||||
%%% VclockBin/binary, SibCount:32/integer, SibsBin/binary>>.
|
%%% VclockBin/binary, SibCount:32/integer, SibsBin/binary>>.
|
||||||
|
|
||||||
riak_metadata_to_binary(VclockBin, SibData) ->
|
riak_metadata_to_binary(Vclock, SibData) ->
|
||||||
|
VclockBin = term_to_binary(Vclock),
|
||||||
VclockLen = byte_size(VclockBin),
|
VclockLen = byte_size(VclockBin),
|
||||||
% <<?MAGIC:8/integer, ?V1_VERS:8/integer, VclockLen:32/integer,
|
% <<?MAGIC:8/integer, ?V1_VERS:8/integer, VclockLen:32/integer,
|
||||||
% VclockBin:VclockLen/binary, SibData:32/integer>>.
|
% VclockBin:VclockLen/binary, SibData:32/integer>>.
|
||||||
|
@ -454,7 +455,7 @@ riak_metadata_from_binary(V1Binary) ->
|
||||||
SC when is_integer(SC) ->
|
SC when is_integer(SC) ->
|
||||||
get_metadata_from_siblings(SibsBin, SibCount, [])
|
get_metadata_from_siblings(SibsBin, SibCount, [])
|
||||||
end,
|
end,
|
||||||
{VclockBin, SibMetaBinList}.
|
{binary_to_term(VclockBin), SibMetaBinList}.
|
||||||
|
|
||||||
% Fixes the value length for each sibling to be zero, and so includes no value
|
% Fixes the value length for each sibling to be zero, and so includes no value
|
||||||
slimbin_content(MetaBin) ->
|
slimbin_content(MetaBin) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue