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

Commit c08abac8 authored by George Burgess IV's avatar George Burgess IV Committed by Gerrit Code Review
Browse files

Merge "snapuserd: fix a use of an uninitialized value"

parents fd8bbd48 a263a883
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -447,16 +447,15 @@ chunk_t Snapuserd::GetNextAllocatableChunkId(chunk_t chunk) {
}

void Snapuserd::CheckMergeCompletionStatus() {
    CowHeader header;
    if (!merge_initiated_) {
        SNAP_LOG(INFO) << "Merge was not initiated. Total-data-ops: " << reader_->total_data_ops();
        return;
    }

    if (merge_initiated_) {
    CowHeader header;
    reader_->GetHeader(&header);
    SNAP_LOG(INFO) << "Merge-status: Total-Merged-ops: " << header.num_merge_ops
                   << " Total-data-ops: " << reader_->total_data_ops();
    } else {
        SNAP_LOG(INFO) << "Merge was not initiated. Total-Merged-ops: " << header.num_merge_ops
                       << " Total-data-ops: " << reader_->total_data_ops();
    }
}

/*