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

Commit 86092652 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add debug logs to understand slow update start issue" into main am: e2274762

parents df270441 e2274762
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -2866,10 +2866,12 @@ bool SnapshotManager::UnmapAllSnapshots() {
}
}


bool SnapshotManager::UnmapAllSnapshots(LockedFile* lock) {
bool SnapshotManager::UnmapAllSnapshots(LockedFile* lock) {
    LOG(INFO) << "Lock acquired for " << __FUNCTION__;
    std::vector<std::string> snapshots;
    std::vector<std::string> snapshots;
    if (!ListSnapshots(lock, &snapshots)) {
    if (!ListSnapshots(lock, &snapshots)) {
        return false;
        return false;
    }
    }
    LOG(INFO) << "Found " << snapshots.size() << " partitions with snapshots";


    for (const auto& snapshot : snapshots) {
    for (const auto& snapshot : snapshots) {
        if (!UnmapPartitionWithSnapshot(lock, snapshot)) {
        if (!UnmapPartitionWithSnapshot(lock, snapshot)) {