mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
warm_bookmarks_cache: add skeleton manifests
Summary: Add skeleton manifests to the derived data types that the warm bookmarks cache keeps warm. Reviewed By: krallin Differential Revision: D26312403 fbshipit-source-id: 26bafee69ac0c38c1d49b29cdeb4968c37243271
This commit is contained in:
parent
0a308f9f84
commit
d3fdd2c53a
@ -23,6 +23,7 @@ fsnodes = { path = "../../derived_data/fsnodes", version = "0.1.0" }
|
||||
mercurial_derived_data = { path = "../../derived_data/mercurial_derived_data", version = "0.1.0" }
|
||||
mononoke_types = { path = "../../mononoke_types", version = "0.1.0" }
|
||||
mutable_counters = { path = "../../mutable_counters", version = "0.1.0" }
|
||||
skeleton_manifest = { path = "../../derived_data/skeleton_manifest", version = "0.1.0" }
|
||||
tunables = { path = "../../tunables", version = "0.1.0" }
|
||||
unodes = { path = "../../derived_data/unodes", version = "0.1.0" }
|
||||
cloned = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master", version = "0.1.0" }
|
||||
|
@ -34,6 +34,7 @@ use lock_ext::RwLockExt;
|
||||
use mercurial_derived_data::MappedHgChangesetId;
|
||||
use mononoke_types::{ChangesetId, Timestamp};
|
||||
use mutable_counters::MutableCounters;
|
||||
use skeleton_manifest::RootSkeletonManifestId;
|
||||
use slog::{debug, info, warn};
|
||||
use stats::prelude::*;
|
||||
use tunables::tunables;
|
||||
@ -124,6 +125,12 @@ impl<'a> WarmBookmarksCacheBuilder<'a> {
|
||||
self.warmers
|
||||
.push(create_derived_data_warmer::<RootFsnodeId>(&self.ctx));
|
||||
}
|
||||
if types.contains(RootSkeletonManifestId::NAME) {
|
||||
self.warmers
|
||||
.push(create_derived_data_warmer::<RootSkeletonManifestId>(
|
||||
&self.ctx,
|
||||
));
|
||||
}
|
||||
if types.contains(BlameRoot::NAME) {
|
||||
self.warmers
|
||||
.push(create_derived_data_warmer::<BlameRoot>(&self.ctx));
|
||||
|
Loading…
Reference in New Issue
Block a user