From: Guang Yang Date: Fri, 31 Oct 2014 16:56:36 +0000 (+0000) Subject: Fix get_bucket_instance_info, only build the oid if it is empty. X-Git-Tag: v0.92~12^2~27 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=231fa0e6704c0af58369e654febf865d66eae063;p=ceph.git Fix get_bucket_instance_info, only build the oid if it is empty. Signed-off-by: Guang Yang --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index a90a44212272..914e24342506 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -5650,7 +5650,7 @@ int RGWRados::get_bucket_instance_info(void *ctx, rgw_bucket& bucket, RGWBucketI time_t *pmtime, map *pattrs) { string oid; - if (!bucket.oid.empty()) { + if (bucket.oid.empty()) { get_bucket_meta_oid(bucket, oid); } else { oid = bucket.oid;