Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Completed and total not consistent when doing 2nd sync #45

Open
drekka opened this issue Oct 3, 2012 · 0 comments
Open

Completed and total not consistent when doing 2nd sync #45

drekka opened this issue Oct 3, 2012 · 0 comments

Comments

@drekka
Copy link

drekka commented Oct 3, 2012

On the first pull sync of a remote database I see the total and completed increment as I would expect. Steadily increasing as the data comes in.

On a subsequent sync though it's a different story. The counts jump all over the place. Turning on debug stuff it appears that total is now tracking the number of documents queued for reading. So it's a value somwhere between 0 and 100. For example, instead of 0,100,250,345,487, etc I'm seeing 0,56,12,0,89,13,etc.

It also appears that when the replication stops, it's sending KVO notifications which zero out the completed field, before setting the mode to Stopped. So if I put up a dialog at the end, it's telling the user nothing was synced.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant