]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
throttle: Minimal destructor fix for Luminous 20306/head
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 28 Jul 2017 18:14:48 +0000 (14:14 -0400)
committerKefu Chai <kchai@redhat.com>
Mon, 5 Feb 2018 07:40:31 +0000 (15:40 +0800)
commit086ae1a6b66091b8310dc4adbbe27a9016698770
treef2be504093ec73c1c09a3af83a6dcd00314c2238
parentd12ab4c1fa53e607a84aa5c214385aa0e9dfb92d
throttle: Minimal destructor fix for Luminous

Get rid of the undefined behavior of destroying condition variables
while they're being waited on.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 0f52f486ef05edf8bf89e2bbb7b79f1bc1644cfa)

Conflicts:
src/common/Throttle.cc
src/common/Throttle.h
src/test/common/Throttle.cc: in jewel, we don't have perfconter
for throttles, neither do we have backport14.h back then, so we need to
resolve these conflicts, by removing perfcounter related change in
Throttle.cc, and add the make_unique helper for test/common/Throttle.cc,
add scope_guard to Throttle.cc.
src/common/Throttle.cc
src/common/Throttle.h
src/test/common/Throttle.cc