Having the block size as a template parameter makes all the code very
verbose, and we're not likely to change it. So this change removes that template arg from everything except the block manager.
This commit is contained in:
4
block.h
4
block.h
@@ -15,6 +15,8 @@
|
||||
|
||||
namespace persistent_data {
|
||||
|
||||
uint32_t const MD_BLOCK_SIZE = 4096;
|
||||
|
||||
class count_adjuster {
|
||||
public:
|
||||
count_adjuster(unsigned &c)
|
||||
@@ -32,7 +34,7 @@ namespace persistent_data {
|
||||
|
||||
typedef uint64_t block_address;
|
||||
|
||||
template <uint32_t BlockSize>
|
||||
template <uint32_t BlockSize = MD_BLOCK_SIZE>
|
||||
class block_manager : private boost::noncopyable {
|
||||
public:
|
||||
typedef boost::shared_ptr<block_manager> ptr;
|
||||
|
Reference in New Issue
Block a user