]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
TokenBucketThrottle: use reference to m_blockers.front() and then update it
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Mon, 15 Oct 2018 05:06:29 +0000 (01:06 -0400)
committerDongsheng Yang <dongsheng.yang@easystack.cn>
Wed, 17 Oct 2018 01:00:46 +0000 (21:00 -0400)
commit9a2b1f26237f05a6fee4bf95ba1cd92f1b88be92
tree1f4226be538584be91510caf68d39a70794ba218
parentda7602be502393634e6262b581145ce7211c5b40
TokenBucketThrottle: use reference to m_blockers.front() and then update it

As we need to update the blocker below, then we need to use reference to front object,
rather than a new object of blocker.

Fixes: http://tracker.ceph.com/issues/36475
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
src/common/Throttle.cc