[space-map-disk] Add virtual destructor to index_store.
Bug. Cleaning up index stores would not be correct.
This commit is contained in:
parent
1481ed0f8a
commit
ed22bfcdda
@ -240,6 +240,8 @@ namespace {
|
|||||||
public:
|
public:
|
||||||
typedef boost::shared_ptr<index_store> ptr;
|
typedef boost::shared_ptr<index_store> ptr;
|
||||||
|
|
||||||
|
virtual ~index_store() {}
|
||||||
|
|
||||||
virtual void count_metadata(block_counter &bc) const = 0;
|
virtual void count_metadata(block_counter &bc) const = 0;
|
||||||
virtual void resize(block_address nr_indexes) = 0;
|
virtual void resize(block_address nr_indexes) = 0;
|
||||||
virtual index_entry find_ie(block_address b) const = 0;
|
virtual index_entry find_ie(block_address b) const = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user