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 context managers to handle storage syncing #12

Merged
merged 1 commit into from Apr 14, 2014
Merged

Conversation

artfwo
Copy link
Member

@artfwo artfwo commented Apr 14, 2014

No description provided.

@@ -331,6 +331,12 @@ def __init__(self, name, config):

self._model = RDF.Model(self._store)

def __enter__(self):
return self
Copy link
Member

Choose a reason for hiding this comment

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

Didn't we need to sync on open too to get any changes other processes has written to disc?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, other updaters will sync when they finish doing their work anyway, so syncing here is unneccessary.

petli added a commit that referenced this pull request Apr 14, 2014
Use context managers to handle storage syncing
@petli petli merged commit d0a131a into master Apr 14, 2014
@petli petli deleted the workers-concurrency branch April 14, 2014 12:29
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