int r = 0;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
cerr << "create collection" << std::endl;
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
}
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
cerr << "add collection" << std::endl;
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
int r = 0;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 4);
cerr << "create collection" << std::endl;
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
}
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 4);
cerr << "add collection" << std::endl;
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
{
// Create a collection along with a hint
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 5);
cerr << "create collection" << std::endl;
bufferlist hint;
::encode(pg_num, hint);
coll_t cid;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
cerr << "Creating collection " << cid << std::endl;
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
coll_t cid(spg_t(pg_t(0, 1), shard_id_t(1)));
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
cerr << "Creating collection " << cid << std::endl;
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
TEST_P(StoreTest, MultipoolListTest) {
int r;
- coll_t cid = coll_t(spg_t(pg_t(1, 1), shard_id_t::NO_SHARD));
+ int poolid = 4373;
+ coll_t cid = coll_t(spg_t(pg_t(0, poolid), shard_id_t::NO_SHARD));
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
cerr << "Creating collection " << cid << std::endl;
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
coll_t cid;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
cerr << "Creating collection " << cid << std::endl;
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
coll_t cid;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
cerr << "Creating collection " << cid << std::endl;
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
coll_t cid;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
cerr << "Creating collection " << cid << std::endl;
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
set<ghobject_t, ghobject_t::BitwiseComparator> created;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
}
int init() {
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
return store->apply_transaction(t);
}
int r;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
}
int r;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
}
int r;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
}
int r;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
t.touch(cid, hoid);
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
unsigned num_objects,
unsigned common_suffix_size
) {
- coll_t cid(spg_t(pg_t(5,2),shard_id_t::NO_SHARD));
- coll_t tid(spg_t(pg_t(3,2),shard_id_t::NO_SHARD));
+ coll_t cid(spg_t(pg_t(0,52),shard_id_t::NO_SHARD));
+ coll_t tid(spg_t(pg_t(1<<common_suffix_size,52),shard_id_t::NO_SHARD));
int r = 0;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, common_suffix_size);
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
}
}
{
ObjectStore::Transaction t;
- t.create_collection(tid);
- t.split_collection(cid, common_suffix_size+1, 0, tid);
+ t.create_collection(tid, common_suffix_size + 1);
+ t.split_collection(cid, common_suffix_size+1, 1<<common_suffix_size, tid);
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
}
int r;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
}
int r;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
t.touch(cid, oid);
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);
int r;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
t.touch(cid, oidhead);
t.collection_move_rename(cid, oidhead, cid, oid);
t.touch(cid, oidhead);
int r;
{
ObjectStore::Transaction t;
- t.create_collection(cid);
+ t.create_collection(cid, 0);
t.touch(cid, hoid);
r = store->apply_transaction(t);
ASSERT_EQ(r, 0);