手动执行全量同步
This commit is contained in:
@@ -12,6 +12,10 @@ pub struct TreeRunConfig {
|
||||
pub max_depth: Option<usize>,
|
||||
/// Max number of CA instances to process.
|
||||
pub max_instances: Option<usize>,
|
||||
/// Skip RRDP/rsync fetch and re-validate from existing `fetch_cache_pp` packs in the DB.
|
||||
///
|
||||
/// This is primarily intended for profiling/analysis runs to remove network noise.
|
||||
pub revalidate_only: bool,
|
||||
}
|
||||
|
||||
impl Default for TreeRunConfig {
|
||||
@@ -19,6 +23,7 @@ impl Default for TreeRunConfig {
|
||||
Self {
|
||||
max_depth: None,
|
||||
max_instances: None,
|
||||
revalidate_only: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -182,7 +187,8 @@ pub fn run_tree_serial_audit(
|
||||
audit.discovered_from = node.discovered_from.clone();
|
||||
publication_points.push(audit);
|
||||
|
||||
let enqueue_children = res.source == PublicationPointSource::Fresh;
|
||||
let enqueue_children =
|
||||
res.source == PublicationPointSource::Fresh || config.revalidate_only;
|
||||
if !enqueue_children && !res.discovered_children.is_empty() {
|
||||
warnings.push(
|
||||
Warning::new("skipping child CA discovery due to failed fetch cache use")
|
||||
|
||||
Reference in New Issue
Block a user