Skip to content

Commit

Permalink
fix: skip collecting files when set
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-elgreco authored and rtyler committed Sep 12, 2024
1 parent 507b50e commit 86b0ba9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions crates/core/src/kernel/snapshot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,13 @@ impl EagerSnapshot {
.iter()
.flat_map(get_visitor)
.collect::<Vec<_>>();
let snapshot = Snapshot::try_new(table_root, store.clone(), config, version).await?;
let files = snapshot.files(store, &mut visitors)?.try_collect().await?;
let snapshot =
Snapshot::try_new(table_root, store.clone(), config.clone(), version).await?;

let files = match config.require_files {
true => snapshot.files(store, &mut visitors)?.try_collect().await?,
false => vec![],
};

let mut sn = Self {
snapshot,
Expand Down

0 comments on commit 86b0ba9

Please sign in to comment.