Skip to content

os/bluestore: fix a few leaks - #11068

Merged
liewegas merged 7 commits into
ceph:masterfrom
liewegas:wip-bluestore-leaks
Sep 14, 2016
Merged

liewegas merged 7 commits into
ceph:masterfrom
liewegas:wip-bluestore-leaks

Conversation

@liewegas

Copy link
Copy Markdown
Member

No description provided.

Comment thread src/os/bluestore/BlueStore.h Outdated

@ifed01 ifed01 Sep 14, 2016 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you may use something like that instead:
extent_map.clear_and_dispose( [](Extent* e) {delete e;});

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh, cool! Updated.

@ifed01

ifed01 commented Sep 14, 2016

Copy link
Copy Markdown
Contributor

LGTM

We need to remove items from the cache LRUs in their
destructors, and it is very awkward to ensure that all
releasing paths either hold the cache lock or have
already cleared the cache items out.

Signed-off-by: Sage Weil <[email protected]>
@liewegas
liewegas merged commit 5fc0ac9 into ceph:master Sep 14, 2016
@liewegas
liewegas deleted the wip-bluestore-leaks branch September 14, 2016 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants