-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resync with a PDS by comparing revs insted of commit CIDs (#373)
When resyncing with a PDS, if users are active then the CID we get from `ListRepos` can become out of date by the time we start comparing the CIDs against our local repo heads (i.e. new events come in for some users, we update the repo head in our local Carstore, and our CID is fresher than the one in-memory from `ListRepos`). Since the Repo Rev is monotonically increasing, we can use the Rev we get back from `ListRepos` as a "low-water-mark" such that, if our local Rev for that repo is > the one we get from the PDS, we know we're current. This should reduce the number of unnecessary repos being recrawled during a resync.
- Loading branch information
Showing
2 changed files
with
21 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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