]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: asio frontend calls process_request
authorCasey Bodley <cbodley@redhat.com>
Sun, 19 Jun 2016 11:01:39 +0000 (07:01 -0400)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 21 Oct 2016 20:57:16 +0000 (22:57 +0200)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_asio_frontend.cc

index faec668ac1191c4960521d2a45bbc04c0dbd61b1..22a92da0fa7a8d45507c4240f82cc26035e8f052 100644 (file)
@@ -10,6 +10,7 @@
 #include <boost/optional.hpp>
 
 #include "rgw_asio_frontend.h"
+#include "rgw_asio_client.h"
 
 #define dout_subsys ceph_subsys_rgw
 
@@ -125,6 +126,10 @@ void AsioFrontend::accept(boost::system::error_code ec)
                         });
 
   ldout(ctx(), 4) << "accept " << endpoint << dendl;
+
+  RGWRequest req{env.store->get_new_req_id()};
+  RGWAsioClientIO client{std::move(socket), std::move(endpoint)};
+  process_request(env.store, env.rest, &req, &client, env.olog);
 }
 
 int AsioFrontend::run()