]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix get_bucket_instance_info, only build the oid if it is empty.
authorGuang Yang <yguang@yahoo-inc.com>
Fri, 31 Oct 2014 16:56:36 +0000 (16:56 +0000)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 14 Jan 2015 03:21:24 +0000 (19:21 -0800)
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
src/rgw/rgw_rados.cc

index a90a442122724c4a45d4908d01c7d416889cc4ba..914e24342506d72f7756115dae4c796427b72f7f 100644 (file)
@@ -5650,7 +5650,7 @@ int RGWRados::get_bucket_instance_info(void *ctx, rgw_bucket& bucket, RGWBucketI
                                        time_t *pmtime, map<string, bufferlist> *pattrs)
 {
   string oid;
-  if (!bucket.oid.empty()) {
+  if (bucket.oid.empty()) {
     get_bucket_meta_oid(bucket, oid);
   } else {
     oid = bucket.oid;