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

Commit 79a68a93 authored by Daniel Zheng's avatar Daniel Zheng
Browse files

libsnapshot: update cow estimation

Cow estimator needs to update next_data_pos_ to be in the correct
position

Test: th
Change-Id: I1e3f2c9434573197e840be5637a90c679610ac4e
parent c2ce0848
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -322,6 +322,7 @@ bool CowWriterV3::WriteOperation(const CowOperationV3& op, const void* data, siz
    if (IsEstimating()) {
        header_.op_count++;
        header_.op_count_max++;
        next_data_pos_ += op.data_length;
        return true;
    }