RGWEnv& rgw_env = client_io->get_env();
struct req_state *s = req->init_state(g_ceph_context, &rgw_env);
- s->obj_ctx = store->create_context(s);
+
+ RGWRadosCtx rados_ctx(store, s);
+ s->obj_ctx = &rados_ctx;
store->set_intent_cb(s->obj_ctx, call_log_intent);
s->req_id = store->unique_id(req->id);
if (handler)
handler->put_op(op);
rest->put_handler(handler);
- store->destroy_context(s->obj_ctx);
dout(1) << "====== req done req=" << hex << req << dec << " http_status=" << http_ret << " ======" << dendl;
void *user_ctx;
RGWRadosCtx(RGWRados *_store) : store(_store), intent_cb(NULL), user_ctx(NULL) { }
+ RGWRadosCtx(RGWRados *_store, void *_user_ctx) : store(_store), intent_cb(NULL), user_ctx(_user_ctx) { }
RGWObjState *get_state(rgw_obj& obj);
void set_atomic(rgw_obj& obj);