diff options
| author | Dan Engelbrecht <[email protected]> | 2025-10-27 10:22:57 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-10-27 10:22:57 +0100 |
| commit | ef86cb465997d20d34d4217acc64a51cfd2ab1d9 (patch) | |
| tree | c3ac98560ddb04e8634180fc6e81733689722820 /src | |
| parent | 5.7.7-pre6 (diff) | |
| download | zen-ef86cb465997d20d34d4217acc64a51cfd2ab1d9.tar.xz zen-ef86cb465997d20d34d4217acc64a51cfd2ab1d9.zip | |
use already built lookup when verifying folder (#615)
Diffstat (limited to 'src')
| -rw-r--r-- | src/zen/cmds/builds_cmd.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/zen/cmds/builds_cmd.cpp b/src/zen/cmds/builds_cmd.cpp index c5b9c4d70..3ba8cdfcc 100644 --- a/src/zen/cmds/builds_cmd.cpp +++ b/src/zen/cmds/builds_cmd.cpp @@ -838,6 +838,7 @@ namespace { }; void VerifyFolder(const ChunkedFolderContent& Content, + const ChunkedContentLookup& Lookup, const std::filesystem::path& Path, bool VerifyFileHash, VerifyFolderStatistics& VerifyFolderStats) @@ -875,8 +876,6 @@ namespace { return true; }; - const ChunkedContentLookup Lookup = BuildChunkedContentLookup(Content); - for (uint32_t PathIndex = 0; PathIndex < PathCount; PathIndex++) { if (Work.IsAborted()) @@ -2247,7 +2246,7 @@ namespace { ProgressBar::SetLogOperationProgress(ProgressMode, TaskSteps::Verify, TaskSteps::StepCount); - VerifyFolder(RemoteContent, Path, Options.PostDownloadVerify, VerifyFolderStats); + VerifyFolder(RemoteContent, RemoteLookup, Path, Options.PostDownloadVerify, VerifyFolderStats); Stopwatch WriteStateTimer; CbObject StateObject = CreateStateObject(BuildId, AllBuildParts, PartContents, LocalFolderState, Path); |