Skip to content

Commit

Permalink
rgw: cleanup dead init_bucket
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Zaitcev <[email protected]>
  • Loading branch information
zaitcev committed Aug 13, 2015
1 parent 46c422f commit 42a8f7c
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/rgw/rgw_bucket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1523,19 +1523,6 @@ class RGWBucketInstanceMetadataObject : public RGWMetadataObject {

class RGWBucketMetadataHandler : public RGWMetadataHandler {

int init_bucket(RGWRados *store, string& bucket_name, rgw_bucket& bucket, RGWObjVersionTracker *objv_tracker) {
RGWBucketInfo bucket_info;
RGWObjectCtx obj_ctx(store);
int r = store->get_bucket_info(obj_ctx, bucket_name, bucket_info, NULL);
if (r < 0) {
cerr << "could not get bucket info for bucket=" << bucket_name << std::endl;
return r;
}
bucket = bucket_info.bucket;

return 0;
}

public:
string get_type() { return "bucket"; }

Expand Down Expand Up @@ -1685,19 +1672,6 @@ class RGWBucketMetadataHandler : public RGWMetadataHandler {

class RGWBucketInstanceMetadataHandler : public RGWMetadataHandler {

int init_bucket(RGWRados *store, string& bucket_name, rgw_bucket& bucket, RGWObjVersionTracker *objv_tracker) {
RGWBucketInfo bucket_info;
RGWObjectCtx obj_ctx(store);
int r = store->get_bucket_info(obj_ctx, bucket_name, bucket_info, NULL);
if (r < 0) {
cerr << "could not get bucket info for bucket=" << bucket_name << std::endl;
return r;
}
bucket = bucket_info.bucket;

return 0;
}

public:
string get_type() { return "bucket.instance"; }

Expand Down

0 comments on commit 42a8f7c

Please sign in to comment.