Merge "libsnapshot: Properly set partial_update_"

This commit is contained in:
Treehugger Robot 2020-07-31 23:02:05 +00:00 committed by Gerrit Code Review
commit 86313d6fdb
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,8 @@ namespace snapshot {
SnapshotMetadataUpdater::SnapshotMetadataUpdater(MetadataBuilder* builder, uint32_t target_slot, SnapshotMetadataUpdater::SnapshotMetadataUpdater(MetadataBuilder* builder, uint32_t target_slot,
const DeltaArchiveManifest& manifest) const DeltaArchiveManifest& manifest)
: builder_(builder), target_suffix_(SlotSuffixForSlotNumber(target_slot)) { : builder_(builder), target_suffix_(SlotSuffixForSlotNumber(target_slot)) {
partial_update_ = manifest.partial_update();
if (!manifest.has_dynamic_partition_metadata()) { if (!manifest.has_dynamic_partition_metadata()) {
return; return;
} }
@ -63,7 +65,6 @@ SnapshotMetadataUpdater::SnapshotMetadataUpdater(MetadataBuilder* builder, uint3
} }
} }
partial_update_ = manifest.partial_update();
} }
bool SnapshotMetadataUpdater::ShrinkPartitions() const { bool SnapshotMetadataUpdater::ShrinkPartitions() const {