]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/rgw:remove unused variables 16649/head
authorztczll <243290414@qq.com>
Fri, 28 Jul 2017 10:00:44 +0000 (06:00 -0400)
committerZhang Lei <243290414@qq.com>
Mon, 31 Jul 2017 02:01:26 +0000 (22:01 -0400)
The bucket has been replaced by bucket info

Signed-off-by: Zhang Lei <243290414@qq.com>
src/rgw/rgw_bucket.cc

index 97ddb192c2d08dc546083a2f7c5f000b61a2ec9c..01083a24fc1f008101c93b2bf452de0160303d48 100644 (file)
@@ -1079,8 +1079,6 @@ int RGWBucket::check_object_index(RGWBucketAdminOpState& op_state,
 
   bool fix_index = op_state.will_fix_index();
 
-  rgw_bucket bucket = op_state.get_bucket();
-
   if (!fix_index) {
     set_err_msg(err_msg, "check-objects flag requires fix index enabled");
     return -EINVAL;
@@ -1125,7 +1123,6 @@ int RGWBucket::check_index(RGWBucketAdminOpState& op_state,
         map<RGWObjCategory, RGWStorageStats>& calculated_stats,
         std::string *err_msg)
 {
-  rgw_bucket bucket = op_state.get_bucket();
   bool fix_index = op_state.will_fix_index();
 
   int r = store->bucket_check_index(bucket_info, &existing_stats, &calculated_stats);