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

Commit 4f7d9ce1 authored by JW Wang's avatar JW Wang
Browse files

Delete committed rollbacks when they expire (4/n)

Now we delete available and committed rollbacks when they expire.
They will be moved to historical rollbacks for debugging purpose.

Bug: 172644981
Test: m
Change-Id: I96d81313936e392babf154b9da826470b4cb9d41
parent dac757cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -715,7 +715,7 @@ class RollbackManagerServiceImpl extends IRollbackManager.Stub implements Rollba
        Iterator<Rollback> iter = mRollbacks.iterator();
        while (iter.hasNext()) {
            Rollback rollback = iter.next();
            if (!rollback.isAvailable()) {
            if (!rollback.isAvailable() && !rollback.isCommitted()) {
                continue;
            }
            Instant rollbackTimestamp = rollback.getTimestamp();