last_committed_crc when committing rewrite transactions
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
}
}
});
+ // "me" is the actual prev of mextent, so before mextent enters
+ // the "prepare" pipeline phase, its last_committed_crc should be
+ // that of "me"'s
+ mextent.set_last_committed_crc(me.get_last_committed_crc());
} else {
auto &mextent = static_cast<CachedExtent&>(mext);
TRACE("{} -> {}", extent, mextent);
0, extent.get_length(), mextent.get_bptr().c_str());
mextent.on_data_commit();
mextent.reapply_delta();
+ mextent.set_last_committed_crc(extent.get_last_committed_crc());
}
}
}