}
cerr << "fscking/fixing" << std::endl;
+ for (size_t i = 0; i < col_count; i++) {
+ ch[i].reset(nullptr);
+ }
bstore->umount();
ASSERT_EQ(bstore->fsck(false), col_count * obj_count);
ASSERT_LE(bstore->quick_fix(), 0);
ASSERT_EQ(bstore->fsck(false), 0);
}
-
cerr << "Completing" << std::endl;
bstore->mount();
}
r = queue_transaction(store, ch, std::move(t));
ASSERT_EQ(r, 0);
}
+ ch.reset(nullptr);
bstore->umount();
bstore->mount();
{
bstore->inject_stray_shared_blob_key(12345678);
{
+ ch.reset(nullptr);
cerr << "fscking/fixing" << std::endl;
// we need to check for null-manager before umount()
bool has_null_manager = bstore->has_null_manager();
ASSERT_EQ(r, 0);
}
+ ch.reset(nullptr);
bstore->umount();
// enable per-pool stats collection hence causing fsck to fail
ASSERT_EQ(r, 0);
}
+ ch.reset(nullptr);
bstore->umount();
// enable per-pool stats collection hence causing fsck to fail
}
// force cache clear
+ ch.reset(nullptr);
{
EXPECT_EQ(store->umount(), 0);
EXPECT_EQ(store->mount(), 0);
}
}
}
+ ch.reset(nullptr);
umount();
// Need to do 2 passes of repair:
// - the first one moves offending objects away
r = store->read(ch, hoid, 0xb000, 0xb000, bl);
ASSERT_EQ(r, 0xb000);
+ ch.reset(nullptr);
store->umount();
store->mount();
ASSERT_EQ(res.size(), 1);
ASSERT_EQ(res.begin()->first, "key1");
}
+ ch.reset(nullptr);
store->umount();
ASSERT_EQ(store->fsck(false), 0);
SetVal(g_conf(), "bluestore_debug_legacy_omap", "false");
ASSERT_EQ(res.size(), 1);
ASSERT_EQ(res.begin()->first, "key1");
}
+ ch.reset(nullptr);
store->umount();
ASSERT_EQ(store->fsck(false), 0);
SetVal(g_conf(), "bluestore_debug_legacy_omap", "false");
//checking just written data
check_omap_data(object_count, poolid, cid);
+ ch.reset(nullptr);
store->umount();
ASSERT_EQ(store->fsck(false), 0);
SetVal(g_conf(), "bluestore_debug_legacy_omap", "false");