Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab2544c1 authored by Gavin Corkery's avatar Gavin Corkery
Browse files

Change checkpointing retry count to 2

Changing the checkpointing retry count to 2 resolves
issues of apex sessions being reverted if a hard reboot takes
place during a userspace reboot. Previously, a revert would
occur based on what stage of the boot sequence a hard reboot
took place in, now the revert will not occur at all.

Bug: 148270009
Test: atest ApexRollbackTests
Change-Id: Idce2d60f0a25f01a7d081420c937e5c9cec12e5d
parent b629d69d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1246,7 +1246,7 @@ public class StagingManager {
            try {
                IStorageManager storageManager = PackageHelper.getStorageManager();
                if (storageManager.supportsCheckpoint()) {
                    storageManager.startCheckpoint(1);
                    storageManager.startCheckpoint(2);
                }
            } catch (Exception e) {
                // Failed to get hold of StorageManager