r = apply_transaction(store, &osr, std::move(t));
ASSERT_EQ(r, 0);
}
+ osr.flush();
{
set<ghobject_t> saw;
vector<ghobject_t> objects;
r = apply_transaction(store, &osr, std::move(t));
ASSERT_EQ(r, 0);
}
+ osr.flush();
{
ghobject_t end(hobject_t(sobject_t("object_100", CEPH_NOSNAP)),
ghobject_t::NO_GEN, shard_id_t(1));
r = apply_transaction(store, &osr, std::move(t));
ASSERT_EQ(r, 0);
}
+ osr.flush();
{
vector<ghobject_t> objects;
ghobject_t next, current;
ASSERT_TRUE(!store->stat(cid, *i, &buf));
}
+ osr.flush();
+
set<ghobject_t> listed, listed2;
vector<ghobject_t> objects;
r = store->collection_list(cid, ghobject_t(), ghobject_t::get_max(), INT_MAX, &objects, 0);
}
void shutdown() {
while (1) {
+ osr->flush();
vector<ghobject_t> objects;
int r = store->collection_list(cid, ghobject_t(), ghobject_t::get_max(),
10, &objects, 0);
EnterExit ee("scan");
while (in_flight)
cond.Wait(lock);
+ osr->flush();
vector<ghobject_t> objects;
set<ghobject_t> objects_set, objects_set2;
ghobject_t next, current;
}
}
vector<ghobject_t> objects;
+ osr.flush();
r = store->collection_list(cid, ghobject_t(), ghobject_t::get_max(), INT_MAX, &objects, 0);
ASSERT_EQ(r, 0);
set<ghobject_t> listed(objects.begin(), objects.end());
ASSERT_EQ(r, 0);
}
+ osr.flush();
vector<ghobject_t> objects;
r = store->collection_list(cid, ghobject_t(), ghobject_t::get_max(),
INT_MAX, &objects, 0);
ASSERT_EQ(r, 0);
}
+ osr.flush();
ObjectStore::Transaction t;
vector<ghobject_t> objects;
r = store->collection_list(cid, ghobject_t(), ghobject_t::get_max(),
}
}
+ osr.flush();
objects.clear();
r = store->collection_list(tid, ghobject_t(), ghobject_t::get_max(),
INT_MAX, &objects, 0);
ASSERT_EQ(r, 0);
}
+ osr.flush();
+
{
vector<ghobject_t> objects;
r = store->collection_list(cid, ghobject_t(), ghobject_t::get_max(),