]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: unexpected crash when creating bucket in librgw 27955/head
authortaoCH <sebastien.chen92@gmail.com>
Wed, 23 Jan 2019 10:03:43 +0000 (02:03 -0800)
committerVicente Cheng <freeze.bilsted@gmail.com>
Fri, 3 May 2019 15:20:42 +0000 (15:20 +0000)
Fixed: https://tracker.ceph.com/issues/38013

Signed-off-by: Tao CHEN <chentao@umcloud.com>
(cherry picked from commit 20c63660bd1ae9a8f1bbd2c2be580e123f79e8da)

src/rgw/librgw.cc

index 33fe128f147dcb521a32a5464a9615e2e14e1885..f94f241569ae1d79a11f2dc2b64c59ea2d7017c0 100644 (file)
@@ -235,6 +235,9 @@ namespace rgw {
 
     RGWObjectCtx rados_ctx(store, s); // XXX holds std::map
 
+    auto sysobj_ctx = store->svc.sysobj->init_obj_ctx();
+    s->sysobj_ctx = &sysobj_ctx;
+
     /* XXX and -then- stash req_state pointers everywhere they are needed */
     ret = req->init(rgw_env, &rados_ctx, io, s);
     if (ret < 0) {