]> 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)
committerSamuel Just <sam.just@inktank.com>
Thu, 13 Mar 2014 21:04:25 +0000 (14:04 -0700)
commit2722a0a487e77ea2aa0d18caec0bdac50cb6a264
treea62735292ce4bffc653390ada9c87b1f13f690e0
parent33b889f3f10dc92ed35915b878f78b43fedb6b6f
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>
src/common/PrioritizedQueue.h