-
-
Notifications
You must be signed in to change notification settings - Fork 672
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
add docstore version #1652
add docstore version #1652
Conversation
closes #1589
Codecov Report
@@ Coverage Diff @@
## main #1652 +/- ##
==========================================
+ Coverage 93.97% 94.02% +0.04%
==========================================
Files 253 254 +1
Lines 47716 48160 +444
==========================================
+ Hits 44843 45284 +441
- Misses 2873 2876 +3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
src/store/footer.rs
Outdated
BinarySerializable::serialize(&self.offset, writer)?; | ||
BinarySerializable::serialize(&self.decompressor.get_id(), writer)?; | ||
writer.write_all(&[0; 15])?; | ||
Ok(()) | ||
} | ||
|
||
fn deserialize<R: io::Read>(reader: &mut R) -> io::Result<Self> { | ||
let _doc_store_version = u32::deserialize(reader)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a check on the version?
(so that we have an error if we try to open a different version)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, I added one
closes #1589