]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Throttle: fix wait/get() with new max
authorHenry Chang <henry@bigtera.com>
Wed, 22 Apr 2015 11:02:24 +0000 (19:02 +0800)
committerHenry Chang <henry@bigtera.com>
Thu, 23 Apr 2015 14:23:01 +0000 (22:23 +0800)
commitd7de5858ca5208604f072eef947ef913d52c883e
treeddaa7e2384156914cd3502e99fd1675de733c9c9
parent89262abc53e324f3ef4d504473a4f1d6eb337c20
Throttle: fix wait/get() with new max

We were unable to set a new non-zero max if the original max was 0.
Fix it. Also, add test cases for it.

Signed-off-by: Henry Chang <henry@bigtera.com>
src/common/Throttle.cc
src/test/common/Throttle.cc