diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-04-17 20:58:32 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-04-19 23:12:55 -0500 |
| commit | d4c76dd11f5a096b4fd3ee9c5efc1f44559ac3da (patch) | |
| tree | 002f0351a05420b3cc1cbca052d4159cfc11706d /src/engine/plan.cpp | |
| parent | 26151ceeb5c57e3fd0bf73e9c13d8d72b41cce74 (diff) | |
| download | wix-d4c76dd11f5a096b4fd3ee9c5efc1f44559ac3da.tar.gz wix-d4c76dd11f5a096b4fd3ee9c5efc1f44559ac3da.tar.bz2 wix-d4c76dd11f5a096b4fd3ee9c5efc1f44559ac3da.zip | |
Send more progress during cache verification.
Add verifyStep to OnCacheVerifyProgress.
Send OnContainerOrPayloadVerify events only if file existed in cache.
Diffstat (limited to 'src/engine/plan.cpp')
| -rw-r--r-- | src/engine/plan.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/engine/plan.cpp b/src/engine/plan.cpp index bf929835..f662c445 100644 --- a/src/engine/plan.cpp +++ b/src/engine/plan.cpp | |||
| @@ -431,8 +431,8 @@ extern "C" HRESULT PlanLayoutBundle( | |||
| 431 | pCacheAction->bundleLayout.qwBundleSize = qwBundleSize; | 431 | pCacheAction->bundleLayout.qwBundleSize = qwBundleSize; |
| 432 | pCacheAction->bundleLayout.pPayloadGroup = pLayoutPayloads; | 432 | pCacheAction->bundleLayout.pPayloadGroup = pLayoutPayloads; |
| 433 | 433 | ||
| 434 | // Acquire + Verify | 434 | // Acquire + Verify + Finalize |
| 435 | pPlan->qwCacheSizeTotal += 2 * qwBundleSize; | 435 | pPlan->qwCacheSizeTotal += 3 * qwBundleSize; |
| 436 | 436 | ||
| 437 | ++pPlan->cOverallProgressTicksTotal; | 437 | ++pPlan->cOverallProgressTicksTotal; |
| 438 | 438 | ||
| @@ -1006,8 +1006,8 @@ extern "C" HRESULT PlanLayoutContainer( | |||
| 1006 | pCacheAction->type = BURN_CACHE_ACTION_TYPE_CONTAINER; | 1006 | pCacheAction->type = BURN_CACHE_ACTION_TYPE_CONTAINER; |
| 1007 | pCacheAction->container.pContainer = pContainer; | 1007 | pCacheAction->container.pContainer = pContainer; |
| 1008 | 1008 | ||
| 1009 | // Acquire + Verify | 1009 | // Acquire + Verify + Finalize |
| 1010 | pPlan->qwCacheSizeTotal += 2 * pContainer->qwFileSize; | 1010 | pPlan->qwCacheSizeTotal += 3 * pContainer->qwFileSize; |
| 1011 | } | 1011 | } |
| 1012 | } | 1012 | } |
| 1013 | else | 1013 | else |
| @@ -2249,8 +2249,14 @@ static HRESULT ProcessPayloadGroup( | |||
| 2249 | 2249 | ||
| 2250 | if (!pPlan->sczLayoutDirectory || !pPayload->pContainer) | 2250 | if (!pPlan->sczLayoutDirectory || !pPayload->pContainer) |
| 2251 | { | 2251 | { |
| 2252 | // Acquire + Verify | 2252 | // Acquire + Verify + Finalize |
| 2253 | pPlan->qwCacheSizeTotal += 2 * pPayload->qwFileSize; | 2253 | pPlan->qwCacheSizeTotal += 3 * pPayload->qwFileSize; |
| 2254 | |||
| 2255 | if (!pPlan->sczLayoutDirectory) | ||
| 2256 | { | ||
| 2257 | // Staging | ||
| 2258 | pPlan->qwCacheSizeTotal += pPayload->qwFileSize; | ||
| 2259 | } | ||
| 2254 | } | 2260 | } |
| 2255 | 2261 | ||
| 2256 | if (!pPlan->sczLayoutDirectory && pPayload->pContainer && 1 == pPayload->cRemainingInstances) | 2262 | if (!pPlan->sczLayoutDirectory && pPayload->pContainer && 1 == pPayload->cRemainingInstances) |
