feat(db): duplicate blob paths on initial scan
ci/woodpecker/push/woodpecker Pipeline was successful Details

refactor/errors
Tomáš Mládek 2023-11-05 22:27:34 +01:00
parent dea40124f9
commit 715f5b0e39
1 changed files with 3 additions and 1 deletions

View File

@ -148,6 +148,7 @@ impl FsStore {
db,
path.clone(),
options.tree_mode.clone(),
options.initial,
&existing_files,
&resolve_cache,
quick_check,
@ -242,6 +243,7 @@ impl FsStore {
db: D,
path: PathBuf,
mode: BlobMode,
initial: bool,
existing_files: &Arc<RwLock<Vec<db::File>>>,
resolve_cache: &Arc<Mutex<ResolveCache>>,
quick_check: bool,
@ -342,7 +344,7 @@ impl FsStore {
)?
.is_empty();
let upath = if !file_is_known {
let upath = if !file_is_known || initial {
self.path_to_upath(&path, mode)?
} else {
None