No longer print hash for stashed blocks during verification of retry
During block verification, load stash reads from the source blocks on the device instead of the stashed files. And for interrupted update, it's pretty common that the source blocks has already been overwritten by subsequent commands. In that case the hash printing is mostly useless. Moreover we should have already printed the hash when the first update failed. Bug: 80241799 Test: Unit tests pass. No longer prints mismatching stashed source blocks on retry. Change-Id: I4effe684280b0325199f6cc4b2cc26e91295c2d7
This commit is contained in:
parent
95b8d2b064
commit
3c5958f62d
1 changed files with 3 additions and 1 deletions
|
@ -765,7 +765,9 @@ static int LoadStash(const CommandParameters& params, const std::string& id, boo
|
|||
}
|
||||
if (VerifyBlocks(id, *buffer, src.blocks(), true) != 0) {
|
||||
LOG(ERROR) << "failed to verify loaded source blocks in stash map.";
|
||||
PrintHashForCorruptedStashedBlocks(id, *buffer, src);
|
||||
if (!is_retry) {
|
||||
PrintHashForCorruptedStashedBlocks(id, *buffer, src);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue