feat(db): duplicate blob paths on initial scan
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
parent
dea40124f9
commit
715f5b0e39
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue