[thin_pool] Tidying

- Remove unused headers
- Use predefined types
This commit is contained in:
Ming-Hung Tsai 2020-06-02 11:22:44 +08:00
parent 598696bc32
commit 4e1ec9326b

View File

@ -20,10 +20,6 @@
#include "thin-provisioning/thin_pool.h"
#include <stdexcept>
#include <sstream>
#include <iostream>
#include <set>
#include <map>
using namespace base;
using namespace std;
@ -219,7 +215,7 @@ thin_pool::get_metadata_snap() const
block_address
thin_pool::alloc_data_block()
{
boost::optional<block_address> mb = md_->data_sm_->new_block();
space_map::maybe_block mb = md_->data_sm_->new_block();
if (!mb)
throw runtime_error("couldn't allocate new block");