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
This commit is contained in:
JW Wang
2020-11-13 15:27:56 +08:00
parent dac757cb7c
commit 4f7d9ce1e6

View File

@@ -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();