summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2021-09-01 19:36:01 -0700
committerKelvin Zhang <zhangkelvin@google.com>2021-09-01 19:37:46 -0700
commitcf3280bde678b0307e638133d7f94ecc51b5242b (patch)
treed4e161522192a6b3c7754a590aa4aa54d9f2ad09
parentfc2afd49239e93bbcd7402777ab27d8b93ce3396 (diff)
Bump map snapshot timeout to 10s
5s might be too short when we are mapping all partitions, as snapuserd must parse all COW ops. Test: th Change-Id: I6ace5c7d815dad125757f20fcf5efde9de77231c
-rw-r--r--aosp/dynamic_partition_control_android.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/aosp/dynamic_partition_control_android.cc b/aosp/dynamic_partition_control_android.cc
index 538b57ce..60936f20 100644
--- a/aosp/dynamic_partition_control_android.cc
+++ b/aosp/dynamic_partition_control_android.cc
@@ -93,7 +93,7 @@ constexpr char kPostinstallFstabPrefix[] = "ro.postinstall.fstab.prefix";
constexpr std::chrono::milliseconds kMapTimeout{1000};
// Map timeout for dynamic partitions with snapshots. Since several devices
// needs to be mapped, this timeout is longer than |kMapTimeout|.
-constexpr std::chrono::milliseconds kMapSnapshotTimeout{5000};
+constexpr std::chrono::milliseconds kMapSnapshotTimeout{10000};
DynamicPartitionControlAndroid::~DynamicPartitionControlAndroid() {
Cleanup();