]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PrioritizedQueue: cap costs at max_tokens_per_subqueue
authorSamuel Just <sam.just@inktank.com>
Thu, 13 Mar 2014 21:04:19 +0000 (14:04 -0700)
committerSage Weil <sage@inktank.com>
Mon, 7 Apr 2014 15:37:54 +0000 (08:37 -0700)
commit2160c72b393893896be581e89a42c4e37b79cb23
treeb89c07a1833491714112528fd67842606b57c81e
parent1dd42e0f75fe1f5363f92bd5a4506812e54b8fb5
PrioritizedQueue: cap costs at max_tokens_per_subqueue

Otherwise, you can get a recovery op in the queue which has a cost
higher than the max token value.  It won't get serviced until all other
queues also do not have enough tokens and higher priority queues are
empty.

Fixes: #7706
Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 2722a0a487e77ea2aa0d18caec0bdac50cb6a264)
src/common/PrioritizedQueue.h