cache_ioctx.set_namespace("");
+ int num = 200;
+
// do a bunch of writes
- for (int i=0; i<1000; ++i) {
+ for (int i=0; i<num; ++i) {
bufferlist bl;
bl.append("a");
ASSERT_EQ(0, cache_ioctx.write(stringify(i), bl, 1, 0));
num_pg = _get_pg_num(cluster, cache_pool_name);
}
- for (int i=0; i<1000; ++i) {
+ for (int i=0; i<num; ++i) {
string n = stringify(i);
uint32_t hash = cache_ioctx.get_object_hash_position(n);
hobject_t oid(sobject_t(n, CEPH_NOSNAP), "", hash,