]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: replace RGWHandler::put_op() in RGWLib path
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 30 Sep 2015 18:46:04 +0000 (14:46 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 16:58:08 +0000 (11:58 -0500)
The method just called delete on the RGWOp pointer.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/librgw.cc

index 827f401684f016dec5e830bec0ee2a440c4c1ed2..616fc4660b745431b2c7e1bc21c5fe5c91c75503 100644 (file)
@@ -396,6 +396,7 @@ int process_request(RGWRados* store, RGWREST* rest, RGWRequest* base_req,
 
   RGWEnv& rgw_env = io->get_env();
 
+  // XXXX fix me--we have a local cct
   struct req_state rstate(g_ceph_context, &rgw_env);
   struct req_state *s = &rstate;
 
@@ -484,12 +485,8 @@ done:
 
   req->log_format(s, "http status=%d", http_ret);
 
-#warning XXX what did this do (return handler?  stash op?)
-#if 0  
-  if (handler)
-    handler->put_op(op);
-  rest->put_handler(handler);
-#endif
+  /* XXX what RGWHandler::put_op() does */
+  delete op;
 
   dout(1) << "====== " << __func__
          << " req done req=" << hex << req << dec << " http_status="