-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revisionstore: auto-sync indexedlog stores when they change on disk
Summary: Use the new super-lightweight is_changed_on_disk() indexedlog check to aggressively refresh indexedlogs to pick up new data if another process has updated the logs. Various things in revisionstore use indexedlog to store/cache data (for example, tree or file data fetched from EdenApi). The logs get flushed typically at the end of sapling commands. This works okay since most sapling commands are short lived, so there isn't much risk of duplicated work due to stale reads. However, eden is a long lived daemon that uses the same stores. This means if you run "sl prefetch ..." for example, eden previously would not benefit since its stores would not refresh automatically from disk to see the new entries. Reviewed By: zzl0 Differential Revision: D55160209 fbshipit-source-id: 4301bc60ffbe26ed4b5e0a3319d4f650d5f56385
- Loading branch information
1 parent
ab1dcc2
commit 3d85abb
Showing
1 changed file
with
78 additions
and
3 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