From: David Zafman Date: Thu, 8 Dec 2016 01:27:01 +0000 (-0800) Subject: test: Don't write to a poolid that this test might not have created X-Git-Tag: v11.1.0~8^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12378%2Fhead;p=ceph.git test: Don't write to a poolid that this test might not have created Signed-off-by: David Zafman --- diff --git a/src/test/librados/misc.cc b/src/test/librados/misc.cc index 40480fa63727..7bb001bcdc54 100644 --- a/src/test/librados/misc.cc +++ b/src/test/librados/misc.cc @@ -107,10 +107,11 @@ TEST(LibRadosMiscPool, PoolCreationRace) { list cls; while (true) { + char buf[100]; rados_completion_t c; rados_aio_create_completion(0, 0, 0, &c); cls.push_back(c); - rados_aio_write(b, "foo", c, "data", 4, 0); + rados_aio_read(b, "PoolCreationRaceObj", c, buf, 100, 0); cout << "started " << (void*)c << std::endl; if (rados_aio_is_complete(cls.front())) { break;