-
Notifications
You must be signed in to change notification settings - Fork 17
Fix v1_ShardInfo mem layout #382
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
Conversation
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.
Pull request overview
This PR fixes a memory layout issue with the v1_ShardInfo struct by moving it outside of the #pragma pack(1) directive to ensure proper byte alignment matching the current ShardInfo struct. The version is bumped from 4.0.7 to 4.0.8 to reflect this bugfix.
- Relocated
v1_ShardInfostruct definition to before#pragma pack(1)directive - Version bumped to 4.0.8
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/lib/homestore_backend/hs_homeobject.hpp | Moved v1_ShardInfo struct outside pragma pack(1) section to fix byte alignment |
| conanfile.py | Bumped version from 4.0.7 to 4.0.8 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Add empty interface methods as per HomeStore 7.1.0. (cherry picked from commit 60152e0)
v1_ShardInfo should have the same byte alignment as ShardInfo struct.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v4 #382 +/- ##
=====================================
Coverage ? 58.96%
=====================================
Files ? 35
Lines ? 4664
Branches ? 581
=====================================
Hits ? 2750
Misses ? 1626
Partials ? 288 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
has the ut failed? |
yuwmao
left a comment
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.
LGTM
zhiteng
left a comment
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.
looks good
JacksonYao287
left a comment
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.
LG
v1_ShardInfo should have the same byte alignment as ShardInfo struct.