From: Kefu Chai Date: Tue, 17 Sep 2019 14:25:46 +0000 (+0800) Subject: crimson/osd/OpsExecuter: pass nspace in msg to do_pg_op() X-Git-Tag: v15.1.0~1510^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=05b88f644ef3aaffb7a08af0559d8f17f1f44644;p=ceph.git crimson/osd/OpsExecuter: pass nspace in msg to do_pg_op() as pg ops should not require the object info, as there is chance that the object specified in pg ops does not exist at all. Signed-off-by: Kefu Chai --- diff --git a/src/crimson/osd/ops_executer.h b/src/crimson/osd/ops_executer.h index fbd376a738f9..81b8d718da52 100644 --- a/src/crimson/osd/ops_executer.h +++ b/src/crimson/osd/ops_executer.h @@ -89,7 +89,7 @@ class OpsExecuter { template auto do_pg_op(Func&& f) { return std::forward(f)(std::as_const(pg), - std::as_const(os->oi.soid.get_namespace())); + std::as_const(msg->get_hobj().nspace)); } seastar::future<> dont_do_legacy_op() {