]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test: Don't write to a poolid that this test might not have created
authorDavid Zafman <dzafman@redhat.com>
Thu, 8 Dec 2016 01:27:01 +0000 (17:27 -0800)
committerDavid Zafman <dzafman@redhat.com>
Thu, 8 Dec 2016 01:27:01 +0000 (17:27 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/test/librados/misc.cc

index 40480fa63727d0e0428281d0ad7aef61d0c57baa..7bb001bcdc541d31b2bb91c39e37e8bf0345cb80 100644 (file)
@@ -107,10 +107,11 @@ TEST(LibRadosMiscPool, PoolCreationRace) {
 
   list<rados_completion_t> 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;