Conversation
switch to use shared_ptr for LogSegment Fixes: https://tracker.ceph.com/issues/4744 Signed-off-by: Tamar Shacked <tshacked@redhat.com>
|
General comment: The typedef for the shared_ptr declare in LogSegment.h: For example, trying to use LogSegmentRef in CDentry.h resolved in: |
Since a pointer type can just work with forward declared class/struct types, the You might have to exhaustively check for those cases and explicitly include the OR You'll need to place the this should work in |
yes, you are right it's legal to declare the same typedef multiple times..but it may cause maintenance issue. |
kotreshhr
left a comment
There was a problem hiding this comment.
Minor nit. lgtm otherwise
Actually. I wasn't aware of it. |
This is definitely our standard pattern for Ref types AFAIK. We don't like to do an import of the standard library with something like "using namespace std;" but this should be fine. @vshankar |
|
@tshacked Please add the |
(sorry for getting back late on this) ACK. Makes sense (although it would have been a tiny bit better if we could have possibly use the same convention, but the MDS codebase is a bit weirdly organized :) |
|
@tshacked you do plan to squash the commits (some, not all) when this is ready to be QA'd, isn't it? |
switch to use shared_ptr for LogSegment* for handling cases where it's store for later usage. (e.g.: mut->ls = mds->mdlog->get_current_segment(); ) Signed-off-by: Tamar Shacked <tshacked@redhat.com> Fixes: https://tracker.ceph.com/issues/4744
Signed-off-by: Tamar Shacked <tshacked@redhat.com>
Fixes: https://tracker.ceph.com/issues/4744 Signed-off-by: Tamar Shacked <tshacked@redhat.com>
9de8a05 to
2d7a8dd
Compare
|
jenkins retest this please |
|
jenkins test make check |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
managing LogSegment* in a shared_ptr, especially for handling cases where
it's being stored for later access.
// e.g.: mut->ls = mds->mdlog->get_current_segment();
Fixes: https://tracker.ceph.com/issues/4744
Signed-off-by: Tamar Shacked tshacked@redhat.com
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows