[cache tools] knock out OPEN from the metadata enum

This commit is contained in:
Joe Thornber
2016-10-07 15:01:16 -04:00
parent 05c4b7b400
commit d710cad52b
4 changed files with 4 additions and 5 deletions

View File

@@ -298,7 +298,7 @@ namespace {
int writeback_(flags const &f) {
block_manager<>::ptr bm = open_bm(*f.metadata_dev, block_manager<>::READ_WRITE);
metadata md(bm, metadata::OPEN);
metadata md(bm);
// FIXME: we're going to have to copy runs to get the through put with small block sizes
unsigned max_ios = f.cache_size / (md.sb_.data_block_size << SECTOR_SHIFT);