[block_manager] Hard code block size to 4k.

We're never going to use anything other than 4k, and by hard coding it we
avoid making block_manager a template.
This commit is contained in:
Joe Thornber
2020-04-30 14:30:01 +01:00
parent 3e5de399a7
commit e801cc607b
57 changed files with 390 additions and 448 deletions

View File

@@ -256,7 +256,7 @@ namespace {
class DamageTests : public Test {
public:
DamageTests()
: bm_(create_bm<BLOCK_SIZE>(NR_BLOCKS)),
: bm_(create_bm(NR_BLOCKS)),
sm_(setup_core_map()),
tm_(bm_, sm_) {
}
@@ -290,7 +290,7 @@ namespace {
//--------------------------------
with_temp_directory dir_;
block_manager<>::ptr bm_;
block_manager::ptr bm_;
space_map::ptr sm_;
transaction_manager tm_;
thing_traits::ref_counter rc_;
@@ -308,7 +308,7 @@ namespace {
}
void commit() {
block_manager<>::write_ref superblock(bm_->superblock(SUPERBLOCK));
block_manager::write_ref superblock(bm_->superblock(SUPERBLOCK));
}
virtual void discover_layout() = 0;