]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Drop a redundant context_io.init 4810/head
authorPete Zaitcev <zaitcev@kotori.zaitcev.us>
Fri, 29 May 2015 23:55:59 +0000 (17:55 -0600)
committerPete Zaitcev <zaitcev@kotori.zaitcev.us>
Sat, 30 May 2015 17:19:25 +0000 (11:19 -0600)
Interestingly enough, the function is not even entirely idempotent:
it prints debugging output, duplicated.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
src/rgw/rgw_main.cc

index 2a247e4191f241c98ee5446b99da220c4479c3fe..9a8aa5f7b3d6d8ef2291e1b4671d7ffc82643a00 100644 (file)
@@ -716,9 +716,6 @@ static int civetweb_callback(struct mg_connection *conn) {
   RGWRequest *req = new RGWRequest(store->get_new_req_id());
   RGWMongoose client_io(conn, pe->port);
 
-  client_io.init(g_ceph_context);
-
-
   int ret = process_request(store, rest, req, &client_io, olog);
   if (ret < 0) {
     /* we don't really care about return code */