mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
crimson/osd: don't extra copy hobject in PG::load_head_obc().
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
This commit is contained in:
parent
c323e59930
commit
45a173f79a
@ -982,8 +982,7 @@ PG::with_existing_clone_obc(ObjectContextRef clone, with_obc_func_t&& func)
|
||||
PG::load_obc_iertr::future<crimson::osd::ObjectContextRef>
|
||||
PG::load_head_obc(ObjectContextRef obc)
|
||||
{
|
||||
hobject_t oid = obc->get_oid();
|
||||
return backend->load_metadata(oid).safe_then_interruptible(
|
||||
return backend->load_metadata(obc->get_oid()).safe_then_interruptible(
|
||||
[obc=std::move(obc)](auto md)
|
||||
-> load_obc_ertr::future<crimson::osd::ObjectContextRef> {
|
||||
const hobject_t& oid = md->os.oi.soid;
|
||||
|
Loading…
Reference in New Issue
Block a user