From cde687ba503b32f5dd1b0332407931e1105ba1f1 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Wed, 7 Dec 2016 17:27:01 -0800 Subject: [PATCH] test: Don't write to a poolid that this test might not have created Signed-off-by: David Zafman --- src/test/librados/misc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/librados/misc.cc b/src/test/librados/misc.cc index 40480fa6372..7bb001bcdc5 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; -- 2.39.5