Switch to binary metadata
Trya nd maintain binary format when stored in Ledger so less swapping/changing as added and removed.
This commit is contained in:
parent
1146e843bc
commit
400f65f557
2 changed files with 20 additions and 33 deletions
|
@ -258,11 +258,11 @@ check_forobject(Bookie, TestObject) ->
|
|||
{ok, HeadBinary} = book_riakhead(Bookie,
|
||||
TestObject#r_object.bucket,
|
||||
TestObject#r_object.key),
|
||||
{_SibMetaBinList,
|
||||
{_SibMetaBin,
|
||||
Vclock,
|
||||
_Hash,
|
||||
size} = leveled_codec:riak_extract_metadata(HeadBinary, size),
|
||||
true = Vclock == TestObject#r_object.vclock.
|
||||
true = binary_to_term(Vclock) == TestObject#r_object.vclock.
|
||||
|
||||
check_formissingobject(Bookie, Bucket, Key) ->
|
||||
not_found = book_riakget(Bookie, Bucket, Key),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue