]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: librados startup/shutdown racer test
authorJeff Layton <jlayton@redhat.com>
Tue, 24 Sep 2019 14:40:00 +0000 (10:40 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 25 Sep 2019 12:12:06 +0000 (08:12 -0400)
commit9b6ed03e607fe150c40f977043788efbd5116ddd
treed8007992c34ee5508fd5e084b8050a526408a097
parent59299c8ea72a735aae4937de24e83da10be8e781
test: librados startup/shutdown racer test

Spawn a bunch of threads, have them do a cluster_connect and immediately
shut the connection down again. Do this in a loop and allow the thread
to exit. Join all of the threads.

This helps ferret out places where state that is global to the program
is inadequately protected.

Test-for: https://tracker.ceph.com/issues/42026
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/test/librados/misc.cc