4f2f4f modified TransactionManager::mount() to use a weak_transaction
while calling init_cached_extents. This is fine, but lookup() needs
to hold a reference to *this until the child lookup completes in order
to ensure residence in the lba pinning set.
Signed-off-by: Samuel Just <sjust@redhat.com>
iter->get_val(),
get_paddr()).safe_then([c, addr, depth](auto child) {
return child->lookup(c, addr, depth);
- });
+ }).finally([ref=LBANodeRef(this)] {});
}
LBAInternalNode::lookup_range_ret LBAInternalNode::lookup_range(