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

Commit 82d0ee6b authored by David Anderson's avatar David Anderson Committed by Automerger Merge Worker
Browse files

Merge "libsnapshot: Propagate merge phase across merge failures." am: d32f5df7

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1770177

Change-Id: Iffdb3aca64e421ba566a41412551da84ba0f72e7
parents df20cd2f d32f5df7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2530,6 +2530,7 @@ bool SnapshotManager::WriteUpdateState(LockedFile* lock, UpdateState state,
        SnapshotUpdateStatus old_status = ReadSnapshotUpdateStatus(lock);
        status.set_compression_enabled(old_status.compression_enabled());
        status.set_source_build_fingerprint(old_status.source_build_fingerprint());
        status.set_merge_phase(old_status.merge_phase());
    }
    return WriteSnapshotUpdateStatus(lock, status);
}