]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: name arguments to RGWRESTConn::get_obj()
authorCasey Bodley <cbodley@redhat.com>
Wed, 26 Jul 2017 20:23:26 +0000 (16:23 -0400)
committerNathan Cutler <ncutler@suse.com>
Mon, 4 Sep 2017 08:54:38 +0000 (10:54 +0200)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 9bd1aa7facf94eed41c4235722490c91c9dbf399)

src/rgw/rgw_rados.cc

index 7a1fce857151b99077ef251e0afaa9ba02cfd1cd..c225046561ca922a22693f2122dc035d6e694126 100644 (file)
@@ -7579,10 +7579,14 @@ int RGWRados::stat_remote_obj(RGWObjectCtx& obj_ctx,
 
   obj_time_weight dest_mtime_weight;
 
+  constexpr bool prepend_meta = true;
+  constexpr bool get_op = true;
+  constexpr bool rgwx_stat = true;
+  constexpr bool sync_manifest = true;
   int ret = conn->get_obj(user_id, info, src_obj, pmod, unmod_ptr,
                       dest_mtime_weight.zone_short_id, dest_mtime_weight.pg_ver,
-                      true /* prepend_meta */, true /* GET */, true /* rgwx-stat */,
-                      true /* sync manifest */, &cb, &in_stream_req);
+                      prepend_meta, get_op, rgwx_stat,
+                      sync_manifest, &cb, &in_stream_req);
   if (ret < 0) {
     return ret;
   }
@@ -7750,10 +7754,14 @@ int RGWRados::fetch_remote_obj(RGWObjectCtx& obj_ctx,
     }
   }
 
+  static constexpr bool prepend_meta = true;
+  static constexpr bool get_op = true;
+  static constexpr bool rgwx_stat = false;
+  static constexpr bool sync_manifest = true;
   ret = conn->get_obj(user_id, info, src_obj, pmod, unmod_ptr,
                       dest_mtime_weight.zone_short_id, dest_mtime_weight.pg_ver,
-                      true /* prepend_meta */, true /* GET */, false /* rgwx-stat */,
-                      true /* sync manifest */, &cb, &in_stream_req);
+                      prepend_meta, get_op, rgwx_stat,
+                      sync_manifest, &cb, &in_stream_req);
   if (ret < 0) {
     goto set_err_state;
   }