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:
Joe Thornber
2011-08-31 12:48:41 +01:00
parent a285fee757
commit 9cfdbfb8cc
15 changed files with 799 additions and 807 deletions

View File

@@ -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;