Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

store,rkt: fix fd leaks #2906

Merged
merged 2 commits into from
Jul 11, 2016
Merged

store,rkt: fix fd leaks #2906

merged 2 commits into from
Jul 11, 2016

Conversation

iaguis
Copy link
Member

@iaguis iaguis commented Jul 11, 2016

Close db lock on store close. If we don't do it, there's a fd leak everytime we open a new Store, even
if it was closed.

Also, close overlay-prepared when checking if a pod uses overlay.

cc @sgotti

Fixes #2899

We weren't closing the file when we checked if the pod used overlay.
If we don't do it, there's a fd leak everytime we open a new Store, even
if it was closed.
@sgotti
Copy link
Contributor

sgotti commented Jul 11, 2016

@iaguis for a strange coincidence the store part is automatically fixed with #2897 😄

@iaguis
Copy link
Member Author

iaguis commented Jul 11, 2016

👍 for deleting code :)

@sgotti
Copy link
Contributor

sgotti commented Jul 11, 2016

This LGTM. Feel free to merge this since probably #2897 needs more review.

@iaguis
Copy link
Member Author

iaguis commented Jul 11, 2016

OK, we'll merge this for now and we'll have a look at your PR afterwards.

@iaguis
Copy link
Member Author

iaguis commented Jul 11, 2016

On green, of course :)

@iaguis iaguis merged commit b82b07b into rkt:master Jul 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gc: too many files opened
2 participants