]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: avoid race condition in RGWHTTPClient::wait()
authorcfanz <songxinyingftd@gmail.com>
Wed, 2 May 2018 07:07:50 +0000 (15:07 +0800)
committercfanz <songxinyingftd@gmail.com>
Wed, 2 May 2018 07:07:54 +0000 (15:07 +0800)
commitc1a43a1a8a81e2d6b22916303f8d42f18afd0393
treef071209c828b045d0086510ee204e0d83f914141
parentbaa095efa3c45c410abf9e7ac02af8c88a7d7540
rgw: avoid race condition in RGWHTTPClient::wait()

The cond is signaled in RGWHTTPManager's thread, which is
different with the thread executing wait(), so there is a
race condition.

Signed-off-by: cfanz <songxinyingftd@gmail.com>
src/rgw/rgw_http_client.cc