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

Use _TreeCtx object to handle garbage collection and final closing of… #267

Merged
merged 2 commits into from
Dec 23, 2015

Conversation

tfredian
Copy link
Contributor

… tree context

This is a much simpler approach of dealing with garbage collection of the Tree contexts. Each Tree instance now has a _TreeCtx member with is a reference to the tree dbid ctx pointer used by the treeshr c routines. When all references to this ctx pointer are removed the trees opened in that ctx are closed and the ctx is freed. When an lsof is added to the python tests after all trees refs are deleted and garbage collection is done no open tree files are found indicating that the tree contexts were cleaned up properly.

tfredian added a commit that referenced this pull request Dec 23, 2015
Use _TreeCtx object to handle garbage collection and final closing of…
@tfredian tfredian merged commit 196a8ce into alpha Dec 23, 2015
@tfredian tfredian deleted the twf-tree-garbage-collection-again branch December 23, 2015 18:42
zack-vii added a commit to zack-vii/mdsplus that referenced this pull request Jan 4, 2016
…collection-again"

This reverts commit 196a8ce, reversing
changes made to 4409046.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant