Scanner: removed the file discover step, as it brings an important time penalty for remote file systems, for big databases (up to several minutes)

This commit is contained in:
emeric
2025-07-07 00:11:12 +02:00
parent 385625b6f7
commit 747b5ef6e8
13 changed files with 14 additions and 136 deletions
@@ -107,8 +107,6 @@ namespace lms::scanner
void ScanStepScanFiles::process(ScanContext& context)
{
context.currentStepStats.totalElems = context.stats.totalFileCount;
for (const MediaLibraryInfo& mediaLibrary : _settings.mediaLibraries)
process(context, mediaLibrary);
}
@@ -165,6 +163,8 @@ namespace lms::scanner
return true;
},
&excludeDirFileName);
context.stats.totalFileCount = context.currentStepStats.totalElems;
}
void ScanStepScanFiles::processFileScanResults(ScanContext& context, std::span<std::unique_ptr<core::IJob>> scanJobs)