]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd/OpsExecuter: pass nspace in msg to do_pg_op()
authorKefu Chai <kchai@redhat.com>
Tue, 17 Sep 2019 14:25:46 +0000 (22:25 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 18 Sep 2019 14:51:28 +0000 (22:51 +0800)
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 <kchai@redhat.com>
src/crimson/osd/ops_executer.h

index fbd376a738f98c9d0eed8bbf5a3b1825a687e9b2..81b8d718da52c9af099a6d2ea7f27328f884a3e1 100644 (file)
@@ -89,7 +89,7 @@ class OpsExecuter {
   template <class Func>
   auto do_pg_op(Func&& f) {
     return std::forward<Func>(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() {