ashwanthkumar / suuchi

सूचि - Toolkit to build Distributed Data Systems
https://ashwanthkumar.github.io/suuchi/
53 stars 12 forks source link

Fixes #74 #75

Closed ashwanthkumar closed 7 years ago

ashwanthkumar commented 7 years ago

VersionedStore now supports storing the written timestamp to the Store as part of the VERSIONS_PREFIX keys. Earlier we used to store the versions like

V_<key_as_bytes> -> (countOfVersions, version1, version2, version3)

in the above version1..3 are all long values as defined by ByTimestamp implementation. Now it is as below

V_<key_as_bytes> -> (countOfVersions, (version1, writtenTs), (version2, writtenTs), (version3, writtenTs))

in the above the written timestamps of all versions are also stored. The default value of written timestamp is current timestamp.

codecov-io commented 7 years ago

Codecov Report

Merging #75 into master will increase coverage by 0.4%. The diff coverage is 92.59%.

@@            Coverage Diff             @@
##             master     #75     +/-   ##
==========================================
+ Coverage      74.1%   74.5%   +0.4%     
- Complexity      108     109      +1     
==========================================
  Files            30      30             
  Lines           699     710     +11     
  Branches         86      87      +1     
==========================================
+ Hits            518     529     +11     
+ Misses          107     106      -1     
- Partials         74      75      +1