]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: dump an error message if FCGX_Accept fails
authorYehuda Sadeh <yehuda@inktank.com>
Mon, 22 Oct 2012 23:52:11 +0000 (16:52 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Mon, 22 Oct 2012 23:52:11 +0000 (16:52 -0700)
Adding missing debug info.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_main.cc

index 44a6f6c26a5646a8f963457758f123eebe072c6b..9f1a7c6672953811b605827a09a697f49c28988a 100644 (file)
@@ -227,8 +227,11 @@ void RGWProcess::run()
     FCGX_InitRequest(&req->fcgx, s, 0);
     req_throttle.get(1);
     int ret = FCGX_Accept_r(&req->fcgx);
-    if (ret < 0)
+    if (ret < 0) {
+      dout(0) << "ERROR: FCGX_Accept_r returned " << ret << dendl;
+      req_throttle.put(1);
       break;
+    }
 
     req_wq.queue(req);
   }