libsnapshot: update cow estimation

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

Test: th
Change-Id: I1e3f2c9434573197e840be5637a90c679610ac4e
This commit is contained in:
Daniel Zheng 2023-11-09 15:49:15 -08:00
parent c2ce084889
commit 79a68a934b

View file

@ -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;
}