]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tests: fix potential race conditions in test_ImageWatcher 3781/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 24 Feb 2015 01:09:56 +0000 (20:09 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 24 Feb 2015 01:09:56 +0000 (20:09 -0500)
commit655e6162494c61d8b8d9e6ad24c75dd2c69483eb
tree960b2f51e5afb4ff43c47f4df683e46c04acd20f
parente1f2c97256fdc776449f7487d54a21944160edc3
tests: fix potential race conditions in test_ImageWatcher

The tests were sending invalid responses back to ImageWatchers
(missing the result code), which had the potential to allow the
lock to be acquired sooner than the test was expecting since
ImageWatcher would assume the last of response code meant no
clients owned the exclusive lock and would retry as fast as
possible.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/librbd/test_ImageWatcher.cc