Merge pull request #53305 from xxhdx1985126/wip-seastore-onode-erase-replay

crimson/os/seastore/onode_manager: populate value recorders of onodes to be erased

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
This commit is contained in:
Yingxin 2023-09-12 09:21:29 +08:00 committed by GitHub
commit eb42e21d79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,6 +120,10 @@ FLTreeOnodeManager::erase_onode_ret FLTreeOnodeManager::erase_onode(
OnodeRef &onode)
{
auto &flonode = static_cast<FLTreeOnode&>(*onode);
assert(flonode.is_alive());
if (flonode.status == FLTreeOnode::status_t::MUTATED) {
flonode.populate_recorder(trans);
}
flonode.mark_delete();
return tree.erase(trans, flonode);
}