// wait for maps to settle
cluster.wait_for_latest_osdmap();
- string name = "foo";
- uint32_t hash = ioctx.get_object_hash_position(name);
- hobject_t oid(sobject_t(name, CEPH_NOSNAP), "", hash,
- cluster.pool_lookup(pool_name.c_str()), "");
-
// keep reading until we see our object appear in the HitSet
utime_t start = ceph_clock_now(NULL);
utime_t hard_stop = start + utime_t(600, 0);
utime_t now = ceph_clock_now(NULL);
ASSERT_TRUE(now < hard_stop);
+ string name = "foo";
+ uint32_t hash = ioctx.get_object_hash_position(name);
+ hobject_t oid(sobject_t(name, CEPH_NOSNAP), "", hash,
+ cluster.pool_lookup(pool_name.c_str()), "");
+
bufferlist bl;
ASSERT_EQ(-ENOENT, ioctx.read("foo", bl, 1, 0));