]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unused RGWProcessEnv::port
authorCasey Bodley <cbodley@redhat.com>
Thu, 20 Oct 2022 19:32:45 +0000 (15:32 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 9 Dec 2022 19:51:38 +0000 (14:51 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_appmain.cc
src/rgw/rgw_process.h

index cea408c174519abe5d238daecf3c82a19581c9fc..5b5d66271973bebc0f1ba4895c523a44b137679e 100644 (file)
@@ -416,12 +416,10 @@ int rgw::AppMain::init_frontends2(RGWLib* rgwlib)
     RGWFrontend* fe = nullptr;
 
     if (framework == "loadgen") {
-      int port;
-      config->get_val("port", 80, &port);
       std::string uri_prefix;
       config->get_val("prefix", "", &uri_prefix);
 
-      RGWProcessEnv env = {driver, &rest, olog, port, uri_prefix,
+      RGWProcessEnv env = {driver, &rest, olog, uri_prefix,
            auth_registry, ratelimiter.get(), lua_background.get()};
 
       fe = new RGWLoadGenFrontend(env, config);
@@ -431,13 +429,12 @@ int rgw::AppMain::init_frontends2(RGWLib* rgwlib)
       config->get_val("port", 80, &port);
       std::string uri_prefix;
       config->get_val("prefix", "", &uri_prefix);
-      RGWProcessEnv env{driver, &rest, olog, port, uri_prefix,
+      RGWProcessEnv env{driver, &rest, olog, uri_prefix,
            auth_registry, ratelimiter.get(), lua_background.get()};
       fe = new RGWAsioFrontend(env, config, *(sched_ctx.get()));
     }
     else if (framework == "rgw-nfs") {
-      int port = 80;
-      RGWProcessEnv env = { driver, &rest, olog, port };
+      RGWProcessEnv env = { driver, &rest, olog };
       fe = new RGWLibFrontend(env, config);
       if (rgwlib) {
         rgwlib->set_fe(static_cast<RGWLibFrontend*>(fe));
index db7752547fe43dd08ee6696c29e8010134e22c80..6346f5228c4866648d7d0088599584e943201c61 100644 (file)
@@ -32,7 +32,6 @@ struct RGWProcessEnv {
   rgw::sal::Driver* driver;
   RGWREST *rest;
   OpsLogSink *olog;
-  int port;
   std::string uri_prefix;
   std::shared_ptr<rgw::auth::StrategyRegistry> auth_registry;
   //maybe there is a better place to driver the rate limit data structure