Add debug logs to understand slow update start issue

Test: th
Bug: 352332753
Change-Id: I2d8f99217722479dcae2e2ea0f74bbf112725ce2
This commit is contained in:
Kelvin Zhang 2024-07-18 09:10:56 -07:00
parent 196a802384
commit 47a95af84f

View file

@ -2866,10 +2866,12 @@ bool SnapshotManager::UnmapAllSnapshots() {
}
bool SnapshotManager::UnmapAllSnapshots(LockedFile* lock) {
LOG(INFO) << "Lock acquired for " << __FUNCTION__;
std::vector<std::string> snapshots;
if (!ListSnapshots(lock, &snapshots)) {
return false;
}
LOG(INFO) << "Found " << snapshots.size() << " partitions with snapshots";
for (const auto& snapshot : snapshots) {
if (!UnmapPartitionWithSnapshot(lock, snapshot)) {