mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
crimson/osd: use finally for capturing this
* no need to capture this, it is already enclosed by `ref` * use finally for capturing `ref`, and for printing out the "complete" logging message. we could use a different branch for printing out the failure message if any. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
c1a8ad1213
commit
776a3ab14a
@ -90,8 +90,8 @@ seastar::future<> PeeringEvent::start()
|
||||
}
|
||||
}).then([this] {
|
||||
return shard_services.send_pg_temp();
|
||||
}).then([this, ref=std::move(ref)] {
|
||||
logger().debug("{}: complete", *this);
|
||||
}).finally([ref=std::move(ref)] {
|
||||
logger().debug("{}: complete", *ref);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user