summaryrefslogtreecommitdiff
path: root/common/action_processor.cc
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-02-26 00:20:08 -0800
committerAlex Deymo <deymo@google.com>2016-02-26 16:59:21 -0800
commitf25eb491ff60f21659a7e2b230ee1c83957034c7 (patch)
tree75d8563ae6fadb8085fa5a2ba9713afba19855ec /common/action_processor.cc
parent4eccae2ffd51c1e76ccd6463212c8e3addbb873e (diff)
Fix resuming canceled updates.
Resuming an interrupted update was broken in several ways. First, DeltaPerformer::CanResumeUpdate was checking for the number of resume-failures to be more than the limit, not less. Then, the resume logic didn't work for payload v2 when there was a metadata signature included in the payload. Finally, resuming an update after reading the payload signature (in payload v2) was not updating the checkpoint, but storing the signature causing it to attempt to parse it again and fail. Bug: 27047026 Bug: chromium:590410 TEST=Manual procedure: 1. Start an update: update_engine_client --update ... 2. Cancel the update: update_engine_client --cancel 3. Re-start the same update: update_engine_client --update ... -> The update should resume from the previous point. Change-Id: I60134de155aa073a7ba91174cceea7297e5f8d17
Diffstat (limited to 'common/action_processor.cc')
0 files changed, 0 insertions, 0 deletions