libsnapshot: Propagate legacy_snapuserd status during WriteUpdateState

Bug: 304829384
Test: OTA on Pixel
Change-Id: I841612c111148523d13166051512314d6fa1986f
Signed-off-by: Akilesh Kailash <akailash@google.com>
This commit is contained in:
Akilesh Kailash 2024-03-26 18:33:58 -07:00
parent 98df25ba2e
commit b0cf1d2370

View file

@ -3018,6 +3018,7 @@ bool SnapshotManager::WriteUpdateState(LockedFile* lock, UpdateState state,
status.set_merge_phase(old_status.merge_phase());
status.set_userspace_snapshots(old_status.userspace_snapshots());
status.set_io_uring_enabled(old_status.io_uring_enabled());
status.set_legacy_snapuserd(old_status.legacy_snapuserd());
}
return WriteSnapshotUpdateStatus(lock, status);
}