[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:
@@ -38,7 +38,6 @@ namespace persistent_data {
|
||||
|
||||
uint32_t const MD_BLOCK_SIZE = 4096;
|
||||
|
||||
template <uint32_t BlockSize = MD_BLOCK_SIZE>
|
||||
class block_manager : private boost::noncopyable {
|
||||
public:
|
||||
typedef boost::shared_ptr<block_manager> ptr;
|
||||
@@ -57,7 +56,7 @@ namespace persistent_data {
|
||||
|
||||
class read_ref {
|
||||
public:
|
||||
static uint32_t const BLOCK_SIZE = BlockSize;
|
||||
static uint32_t const BLOCK_SIZE = MD_BLOCK_SIZE;
|
||||
|
||||
read_ref(block_cache::block &b);
|
||||
|
||||
@@ -149,8 +148,6 @@ namespace persistent_data {
|
||||
}
|
||||
}
|
||||
|
||||
#include "block.tcc"
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user