-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplemented CBLReplication.pendingDocumentIDs and -isDocumentPending:
Now tracking replicator's lastSequence and caching it in an ivar. -isDocumentPending: just compares the doc's sequence with that. pendingDocumentIDs does basically what it used to do, but it doesn't need to do it on a background thread. Also, the bug-fix portion of this is that pendingDocumentIDs remembers the database's lastSequenceNumber when it's cached; if that changes, the cached value is invalidated. Fixes #1132
- Loading branch information
Showing
2 changed files
with
96 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters