]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: apply RGWRESTReadResource::wait_bl() fix to PostResource as well
authorCasey Bodley <cbodley@redhat.com>
Thu, 5 Nov 2015 17:27:11 +0000 (12:27 -0500)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:29 +0000 (16:13 -0800)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rest_conn.h

index 7c602bc16f26073971ab998c1feb1f20d84a916c..28537cf96d462d502b59dd3b7ab81f4580f70cc4 100644 (file)
@@ -302,6 +302,12 @@ public:
   }
 
   int wait_bl(bufferlist *pbl) {
+    int ret = req.wait();
+    put();
+    if (ret < 0) {
+      return ret;
+    }
+
     if (req.get_status() < 0) {
       return req.get_status();
     }