[space-map-disk] fix the number of free blocks (#93)

This commit is contained in:
Ming-Hung Tsai
2018-04-17 21:00:44 +08:00
committed by Joe Thornber
parent e619c6edd0
commit 582e424560
2 changed files with 3 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ metadata::metadata(block_manager<>::ptr bm, open_type ot,
sb_.device_details_root_ = details_->get_root();
sb_.data_block_size_ = data_block_size;
sb_.metadata_block_size_ = MD_BLOCK_SIZE >> SECTOR_SHIFT;
sb_.metadata_nr_blocks_ = tm_->get_bm()->get_nr_blocks();
sb_.metadata_nr_blocks_ = metadata_sm_->get_nr_blocks();
break;
}