Skip to content
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

mds: use unique_ptr to simplify resource mgmt #11543

Merged
merged 1 commit into from Oct 20, 2016

Conversation

batrick
Copy link
Member

@batrick batrick commented Oct 19, 2016

[FYI, this was originally part of a large branch I've been sitting on for a few months. Unfortunately that branch grew too large making it difficult to go through compile errors. So, I'm breaking it up over time into smaller PRs.]

@batrick batrick added cephfs Ceph File System needs-review labels Oct 19, 2016
@@ -183,7 +183,6 @@ CDir::CDir(CInode *in, frag_t fg, MDCache *mdcache, bool auth) :
first(2),
dirty_rstat_inodes(member_offset(CInode, dirty_rstat_item)),
projected_version(0), item_dirty(this), item_new(this),
scrub_infop(NULL),
num_head_items(0), num_head_null(0),
num_snap_items(0), num_snap_null(0),
num_dirty(0), committing_version(0), committed_version(0),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bloom(null) is redundant

@jcsp
Copy link
Contributor

jcsp commented Oct 19, 2016

👍

@batrick batrick force-pushed the cdir-unique-ptr branch 3 times, most recently from 0eb7e79 to 6dfd0e1 Compare October 19, 2016 14:59
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
@batrick
Copy link
Member Author

batrick commented Oct 19, 2016

@jcsp, I've made a few corrections due to build errors. I think this is ready for testing.

@jcsp jcsp merged commit 9563eb2 into ceph:master Oct 20, 2016
@batrick batrick deleted the cdir-unique-ptr branch October 21, 2016 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cephfs Ceph File System needs-review
Projects
None yet
3 participants