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

Add ref counting to which leveldb shards are open so they can be closed ... #301

Merged
merged 4 commits into from
Mar 10, 2014

Conversation

pauldix
Copy link
Member

@pauldix pauldix commented Mar 5, 2014

...after references released

delete(self.shards, id)
delete(self.lastAccess, id)
delete(self.shardsToClose, id)
shard := self.shards[id]
Copy link
Contributor

Choose a reason for hiding this comment

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

the delete on line 202 will cause this line to always return nil

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch, lol

jvshahid added a commit that referenced this pull request Mar 10, 2014
Add ref counting to which leveldb shards are open so they can be closed ...
@jvshahid jvshahid merged commit dd55e2c into master Mar 10, 2014
@jvshahid jvshahid deleted the ref-count-on-open-shards branch March 25, 2014 16:43
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.

None yet

2 participants