]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: Moving sleep call after action in ceph_watch_wait()
authorErwan Velu <erwan@redhat.com>
Wed, 23 Mar 2016 09:22:28 +0000 (10:22 +0100)
committerErwan Velu <erwan@redhat.com>
Tue, 5 Apr 2016 07:36:25 +0000 (09:36 +0200)
commit8a49a869011e18ee08cff4f37b28fb0cd05eec10
tree4eb1710c051f2e0623b8a897e6bc8a95060a324b
parent1b7991e92e1bf9176fff52c604d32aa817b3dd5c
tests: Moving sleep call after action in ceph_watch_wait()

ceph_watch_wait() is doing a sleep _before_ doing the test which could
stop this loop.

It's better doing the action first as it could exit immediately and
avoid a useless sleep.

That's a minor optimization but everything count when trying to get
something smooth.

Signed-off-by: Erwan Velu <erwan@redhat.com>
qa/workunits/cephtool/test.sh