]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: unexpected crash when creating bucket in librgw 26089/head
authortaoCH <sebastien.chen92@gmail.com>
Wed, 23 Jan 2019 10:03:43 +0000 (02:03 -0800)
committertaoCH <sebastien.chen92@gmail.com>
Wed, 23 Jan 2019 10:03:43 +0000 (02:03 -0800)
Fixed: https://tracker.ceph.com/issues/38013

Signed-off-by: Tao CHEN <chentao@umcloud.com>
src/rgw/librgw.cc

index f195dd96f0eacae0fc747c378d99d01f3a4229cf..2098793be2459e20e14db0a67bd49051f924c26e 100644 (file)
@@ -234,6 +234,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) {