]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix for null version_id in fetch_remote_obj() 14375/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 5 Apr 2017 20:19:57 +0000 (16:19 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 6 Apr 2017 17:17:51 +0000 (13:17 -0400)
commit 8b43c9781206c22d9aedb4beb8d669bf1e23169f fixed the wrong use of
the dest_obj's version, but removed the check for "null" version

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rados.cc

index cdeca8ab4c98f26c677d3aae27a5c8bd70e791fc..296e061fd527bca59d2b98a026c3669d398d9afd 100644 (file)
@@ -7141,7 +7141,7 @@ int RGWRados::fetch_remote_obj(RGWObjectCtx& obj_ctx,
   RGWPutObjProcessor_Atomic processor(obj_ctx,
                                       dest_bucket_info, dest_obj.bucket, dest_obj.key.name,
                                       cct->_conf->rgw_obj_stripe_size, tag, dest_bucket_info.versioning_enabled());
-  if (version_id) {
+  if (version_id && *version_id != "null") {
     processor.set_version_id(*version_id);
   }
   processor.set_olh_epoch(olh_epoch);