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

Registered blocks aren't shared between threads #26

Closed
snej opened this issue Mar 20, 2013 · 0 comments
Closed

Registered blocks aren't shared between threads #26

snej opened this issue Mar 20, 2013 · 0 comments
Assignees

Comments

@snej
Copy link
Contributor

snej commented Mar 20, 2013

If you instantiate multiple CBLDatabases on a single database file, they mostly stay in sync because they operate on the same documents. But map/reduce/validation/filter functions registered with one aren't seen by the other.

This causes problems when you start a CBLListener, because it creates new CBLDatabase instances on its background thread. HTTP requests to the listener that involve views or filters or validation won't work correctly.

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

No branches or pull requests

1 participant