]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/rados: Fix timeouts for small t 1869/head
authorJohn Spray <john.spray@inktank.com>
Sun, 25 May 2014 16:34:08 +0000 (17:34 +0100)
committerJohn Spray <john.spray@inktank.com>
Sun, 25 May 2014 16:34:08 +0000 (17:34 +0100)
commit4c22c6f9d39fa566c447daeb843d88c51425a9d5
tree9fef47e29a0efadf1eb0bc88e77c973bc33dd50e
parent04f8e0effaae54d1cc4c4b34d30db48b85039595
pybind/rados: Fix timeouts for small t

Previously, if passing a number less than 0.5 for
the timeout, operations would always return
a failure status code.

The same problem would also generate premature timeouts
for operations which completed within 0.5s of
their timeout deadline.

Fix the logic so that we only decrement `countdown`
if the thread has not completed when returning from join().

Signed-off-by: John Spray <john.spray@inktank.com>
src/pybind/rados.py