-
Notifications
You must be signed in to change notification settings - Fork 21
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
disable copy construction for homestore superblock #246
disable copy construction for homestore superblock #246
Conversation
3d7e079
to
52e7f76
Compare
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #246 +/- ##
==========================================
+ Coverage 70.27% 70.35% +0.08%
==========================================
Files 97 97
Lines 7944 7952 +8
Branches 1017 1016 -1
==========================================
+ Hits 5583 5595 +12
+ Misses 1870 1869 -1
+ Partials 491 488 -3 ☔ View full report in Codecov by Sentry. |
Can you bump homstore patch version assuming it compiles successfully with homeobj? |
yes, I can bump homestore patch version for this. but homeobject need make little changes to build successfully because indextable interface is changed. |
52e7f76
to
2daa244
Compare
rhs.m_meta_mgr_cookie = nullptr; | ||
rhs.m_sb = nullptr; |
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 two members is initialized in initialization list and set to nullptr here?
they are already initialized with nullptr
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 move construction
rhs.m_meta_mgr_cookie = nullptr; | ||
rhs.m_sb = nullptr; |
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.
the same as above
with copy construction, superblock will be easy to cause duplicated metablk when call write() function if it is not carefully enough. we can avoid this by disable copy construction and only allow move construction.