{
{
BlueStore::Blob b;
- b.shared_blob = new BlueStore::SharedBlob(-1, string(), nullptr);
+ b.shared_blob = new BlueStore::SharedBlob(nullptr);
b.shared_blob->get(); // hack to avoid dtor from running
b.dirty_blob().extents.push_back(bluestore_pextent_t(0x40715000, 0x2000));
b.dirty_blob().extents.push_back(
{
BlueStore::Blob B;
- B.shared_blob = new BlueStore::SharedBlob(-1, string(), nullptr);
+ B.shared_blob = new BlueStore::SharedBlob(nullptr);
B.shared_blob->get(); // hack to avoid dtor from running
bluestore_blob_t& b = B.dirty_blob();
vector<bluestore_pextent_t> r;
}
{
BlueStore::Blob B;
- B.shared_blob = new BlueStore::SharedBlob(-1, string(), nullptr);
+ B.shared_blob = new BlueStore::SharedBlob(nullptr);
B.shared_blob->get(); // hack to avoid dtor from running
bluestore_blob_t& b = B.dirty_blob();
vector<bluestore_pextent_t> r;
}
{
BlueStore::Blob B;
- B.shared_blob = new BlueStore::SharedBlob(-1, string(), nullptr);
+ B.shared_blob = new BlueStore::SharedBlob(nullptr);
B.shared_blob->get(); // hack to avoid dtor from running
bluestore_blob_t& b = B.dirty_blob();
vector<bluestore_pextent_t> r;
}
{
BlueStore::Blob B;
- B.shared_blob = new BlueStore::SharedBlob(-1, string(), nullptr);
+ B.shared_blob = new BlueStore::SharedBlob(nullptr);
B.shared_blob->get(); // hack to avoid dtor from running
bluestore_blob_t& b = B.dirty_blob();
vector<bluestore_pextent_t> r;
}
{
BlueStore::Blob B;
- B.shared_blob = new BlueStore::SharedBlob(-1, string(), nullptr);
+ B.shared_blob = new BlueStore::SharedBlob(nullptr);
B.shared_blob->get(); // hack to avoid dtor from running
bluestore_blob_t& b = B.dirty_blob();
vector<bluestore_pextent_t> r;
}
{
BlueStore::Blob B;
- B.shared_blob = new BlueStore::SharedBlob(-1, string(), nullptr);
+ B.shared_blob = new BlueStore::SharedBlob(nullptr);
B.shared_blob->get(); // hack to avoid dtor from running
bluestore_blob_t& b = B.dirty_blob();
vector<bluestore_pextent_t> r;
}
{
BlueStore::Blob B;
- B.shared_blob = new BlueStore::SharedBlob(-1, string(), nullptr);
+ B.shared_blob = new BlueStore::SharedBlob(nullptr);
B.shared_blob->get(); // hack to avoid dtor from running
bluestore_blob_t& b = B.dirty_blob();
vector<bluestore_pextent_t> r;
}
{
BlueStore::Blob B;
- B.shared_blob = new BlueStore::SharedBlob(-1, string(), nullptr);
+ B.shared_blob = new BlueStore::SharedBlob(nullptr);
B.shared_blob->get(); // hack to avoid dtor from running
bluestore_blob_t& b = B.dirty_blob();
vector<bluestore_pextent_t> r;
}
{
BlueStore::Blob B;
- B.shared_blob = new BlueStore::SharedBlob(-1, string(), nullptr);
+ B.shared_blob = new BlueStore::SharedBlob(nullptr);
B.shared_blob->get(); // hack to avoid dtor from running
bluestore_blob_t& b = B.dirty_blob();
vector<bluestore_pextent_t> r;
// verify csum chunk size if factored in properly
{
BlueStore::Blob B;
- B.shared_blob = new BlueStore::SharedBlob(-1, string(), nullptr);
+ B.shared_blob = new BlueStore::SharedBlob(nullptr);
B.shared_blob->get(); // hack to avoid dtor from running
bluestore_blob_t& b = B.dirty_blob();
vector<bluestore_pextent_t> r;
}
{
BlueStore::Blob B;
- B.shared_blob = new BlueStore::SharedBlob(-1, string(), nullptr);
+ B.shared_blob = new BlueStore::SharedBlob(nullptr);
B.shared_blob->get(); // hack to avoid dtor from running
bluestore_blob_t& b = B.dirty_blob();
B.get_ref(0x0, 0x3800);
BlueStore::Cache *cache = BlueStore::Cache::create("lru", NULL);
{
BlueStore::Blob L, R;
- L.shared_blob = new BlueStore::SharedBlob(-1, string(), cache);
+ L.shared_blob = new BlueStore::SharedBlob(cache);
L.shared_blob->get(); // hack to avoid dtor from running
- R.shared_blob = new BlueStore::SharedBlob(-1, string(), cache);
+ R.shared_blob = new BlueStore::SharedBlob(cache);
R.shared_blob->get(); // hack to avoid dtor from running
L.dirty_blob().extents.emplace_back(bluestore_pextent_t(0x2000, 0x2000));
L.dirty_blob().init_csum(Checksummer::CSUM_CRC32C, 12, 0x2000);
}
{
BlueStore::Blob L, R;
- L.shared_blob = new BlueStore::SharedBlob(-1, string(), cache);
+ L.shared_blob = new BlueStore::SharedBlob(cache);
L.shared_blob->get(); // hack to avoid dtor from running
- R.shared_blob = new BlueStore::SharedBlob(-1, string(), cache);
+ R.shared_blob = new BlueStore::SharedBlob(cache);
R.shared_blob->get(); // hack to avoid dtor from running
L.dirty_blob().extents.emplace_back(bluestore_pextent_t(0x2000, 0x1000));
L.dirty_blob().extents.emplace_back(bluestore_pextent_t(0x12000, 0x1000));
BlueStore::LRUCache cache;
BlueStore::ExtentMap em(nullptr);
BlueStore::BlobRef br(new BlueStore::Blob);
- br->shared_blob = new BlueStore::SharedBlob(-1, string(), &cache);
+ br->shared_blob = new BlueStore::SharedBlob(&cache);
ASSERT_EQ(em.extent_map.end(), em.find_lextent(0));
ASSERT_EQ(em.extent_map.end(), em.find_lextent(100));
BlueStore::LRUCache cache;
BlueStore::ExtentMap em(nullptr);
BlueStore::BlobRef br(new BlueStore::Blob);
- br->shared_blob = new BlueStore::SharedBlob(-1, string(), &cache);
+ br->shared_blob = new BlueStore::SharedBlob(&cache);
ASSERT_EQ(em.extent_map.end(), em.seek_lextent(0));
ASSERT_EQ(em.extent_map.end(), em.seek_lextent(100));
BlueStore::LRUCache cache;
BlueStore::ExtentMap em(nullptr);
BlueStore::BlobRef b(new BlueStore::Blob);
- b->shared_blob = new BlueStore::SharedBlob(-1, string(), &cache);
+ b->shared_blob = new BlueStore::SharedBlob(&cache);
ASSERT_FALSE(em.has_any_lextents(0, 0));
ASSERT_FALSE(em.has_any_lextents(0, 1000));
BlueStore::BlobRef b1(new BlueStore::Blob);
BlueStore::BlobRef b2(new BlueStore::Blob);
BlueStore::BlobRef b3(new BlueStore::Blob);
- b1->shared_blob = new BlueStore::SharedBlob(-1, string(), &cache);
- b2->shared_blob = new BlueStore::SharedBlob(-1, string(), &cache);
- b3->shared_blob = new BlueStore::SharedBlob(-1, string(), &cache);
+ b1->shared_blob = new BlueStore::SharedBlob(&cache);
+ b2->shared_blob = new BlueStore::SharedBlob(&cache);
+ b3->shared_blob = new BlueStore::SharedBlob(&cache);
em.extent_map.insert(*new BlueStore::Extent(0, 0, 100, b1));
em.extent_map.insert(*new BlueStore::Extent(100, 0, 100, b2));