From 2c0f03a9fe399482f2a95d2efc7530be2d0636ef Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Fri, 1 Apr 2016 14:40:12 +0200 Subject: [PATCH] rgw_admin: remove unused parent_period arg This variable seems to be unused, removing from help and code Signed-off-by: Abhishek Lekshmanan --- src/rgw/rgw_admin.cc | 5 +---- src/test/cli/radosgw-admin/help.t | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index f85286f3ac66..69cde06fb0c0 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -184,7 +184,6 @@ void _usage() cout << " replica datalog get/delete\n"; cout << " --metadata-key= key to retrieve metadata from with metadata get\n"; cout << " --remote= remote to pull period\n"; - cout << " --parent= parent period id\n"; cout << " --period= period id\n"; cout << " --epoch= period epoch\n"; cout << " --commit commit the period during 'period update'\n"; @@ -1934,7 +1933,7 @@ int main(int argc, char **argv) std::string date, subuser, access, format; std::string start_date, end_date; std::string key_type_str; - std::string period_id, period_epoch, remote, url, parent_period; + std::string period_id, period_epoch, remote, url; std::string master_zonegroup, master_zone; std::string realm_name, realm_id, realm_new_name; std::string zone_name, zone_id, zone_new_name; @@ -2252,8 +2251,6 @@ int main(int argc, char **argv) cerr << "ERROR: invalid bucket index entry type" << std::endl; return EINVAL; } - } else if (ceph_argparse_witharg(args, i, &val, "--parent", (char*)NULL)) { - parent_period = val; } else if (ceph_argparse_binary_flag(args, i, &is_master_int, NULL, "--master", (char*)NULL)) { is_master = (bool)is_master_int; is_master_set = true; diff --git a/src/test/cli/radosgw-admin/help.t b/src/test/cli/radosgw-admin/help.t index 37523c9af8ca..d2dc67a7e7a8 100644 --- a/src/test/cli/radosgw-admin/help.t +++ b/src/test/cli/radosgw-admin/help.t @@ -136,7 +136,6 @@ replica datalog get/delete --metadata-key= key to retrieve metadata from with metadata get --remote= remote to pull period - --parent= parent period id --period= period id --epoch= period epoch --commit commit the period during 'period update' -- 2.47.3