]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Merge pull request #21767 from cfanz/wip-fix-rgw-race-condition
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 31 Oct 2018 18:56:29 +0000 (14:56 -0400)
committerGitHub <noreply@github.com>
Wed, 31 Oct 2018 18:56:29 +0000 (14:56 -0400)
rgw: avoid race condition in RGWHTTPClient::wait()

1  2 
src/rgw/rgw_http_client.cc

index b7389e2c7b16b1a9589fa607f3ceca1f6f630ac4,2e9ac8da6f02e1e6340ea4a04f3d67db2649d5dd..f5dbef6ec508d0718ac1ff070af5fab37e579ae6
@@@ -527,14 -527,10 +530,10 @@@ bool RGWHTTPClient::is_done(
   */
  int RGWHTTPClient::wait()
  {
-   if (!req_data->is_done()) {
-     return req_data->wait();
-   }
-   return req_data->ret;
+   return req_data->wait();
  }
  
 -RGWHTTPClient::~RGWHTTPClient()
 +void RGWHTTPClient::cancel()
  {
    if (req_data) {
      RGWHTTPManager *http_manager = req_data->mgr;