-
Notifications
You must be signed in to change notification settings - Fork 170
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
Bump file format version #7977
Bump file format version #7977
Conversation
@@ -419,6 +419,7 @@ int Group::read_only_version_check(SlabAlloc& alloc, ref_type top_ref, const std | |||
case 0: | |||
file_format_ok = (top_ref == 0); | |||
break; | |||
case 24: |
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.
why this magic number here?
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.
This is the version(s) we can open in read-only mode
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.
OK, got it, because v24 will be eventually rewritten in v25 after compression!
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.
Because we can read v24 without upgrade. If it is in read-only mode, we will not make any commits and therefore no compression will happen.
@@ -419,6 +419,7 @@ int Group::read_only_version_check(SlabAlloc& alloc, ref_type top_ref, const std | |||
case 0: | |||
file_format_ok = (top_ref == 0); | |||
break; | |||
case 24: |
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.
OK, got it, because v24 will be eventually rewritten in v25 after compression!
0862454
to
870d2a6
Compare
870d2a6
to
97549be
Compare
Pull Request Test Coverage Report for Build jorgen.edelbo_387Details
💛 - Coveralls |
What, How & Why?
☑️ ToDos
bindgen/spec.yml
, if public C++ API changed