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

Fixed CBL Android 782 - Pull Replication crashes Android client #63

Closed

Conversation

hideki
Copy link

@hideki hideki commented Feb 17, 2016

Problem:

Solution:

  • call DeleteLocalRef immediately as soon as retrieve revision id string.

Unit Test

Problem:
- In case  revision history is more than around 500, current code causes `local reference table overflow (max=512)` because local references are deleted when exit  from method.
- Issue: https://github.com/couchbase/couchbase-lite-android/issues/782

Solution:
- call DeleteLocalRef immediately as soon as retrieve revision id string.
@snej
Copy link
Contributor

snej commented Feb 17, 2016

Oh — actually all we need to do is call env->EnsureLocalCapacity(n) beforehand. (See the docs).

@hideki hideki closed this Feb 17, 2016
@hideki hideki deleted the feature/issue_782_forestdb_pullrepl_crash branch February 17, 2016 22:15
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.

2 participants