]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: api fixes following rebase
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 21 Sep 2018 07:12:43 +0000 (00:12 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 8 Nov 2018 17:19:29 +0000 (09:19 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_cr_rados.cc
src/rgw/rgw_rest_swift.cc

index e9355b83c0530c393151cab7c068beb0c2a97f61..176ff41d36bdfa15908cb34cf274cbfc6f2b0984 100644 (file)
@@ -142,7 +142,7 @@ RGWAsyncPutSystemObj::RGWAsyncPutSystemObj(RGWCoroutine *caller, RGWAioCompletio
                      RGWSI_SysObj *_svc,
                      RGWObjVersionTracker *_objv_tracker, const rgw_raw_obj& _obj,
                      bool _exclusive, bufferlist _bl)
-  : RGWAsyncRadosRequest(caller, cn), store(_store),
+  : RGWAsyncRadosRequest(caller, cn), svc(_svc),
     obj(_obj), exclusive(_exclusive), bl(std::move(_bl))
 {
   if (_objv_tracker) {
index 3d94fbb7fb085cb61bcc364d5f60871871b50b8b..40a1ebe7e23cb226b97d3135ede0c9bd1949ce68 100644 (file)
@@ -845,7 +845,7 @@ int RGWPutObj_ObjStore_SWIFT::update_slo_segment_size(rgw_slo_entry& entry) {
   if (bucket_name.compare(s->bucket.name) != 0) {
     RGWBucketInfo bucket_info;
     map<string, bufferlist> bucket_attrs;
-    RGWObjectCtx obj_ctx(store);
+    auto obj_ctx = store->svc.sysobj->init_obj_ctx();
     r = store->get_bucket_info(obj_ctx, s->user->user_id.tenant,
                               bucket_name, bucket_info, nullptr,
                               &bucket_attrs);
@@ -865,7 +865,7 @@ int RGWPutObj_ObjStore_SWIFT::update_slo_segment_size(rgw_slo_entry& entry) {
 
   /* no prefetch */
   RGWObjectCtx obj_ctx(store);
-  obj_ctx.obj.set_atomic(slo_seg);
+  obj_ctx.set_atomic(slo_seg);
 
   RGWRados::Object op_target(store, s->bucket_info, obj_ctx, slo_seg);
   RGWRados::Object::Read read_op(&op_target);