| 336 | } |
| 337 | |
| 338 | void BlockManager::Unload() |
| 339 | { |
| 340 | m_blocks_unlinked.clear(); |
| 341 | |
| 342 | for (const BlockMap::value_type& entry : m_block_index) { |
| 343 | delete entry.second; |
| 344 | } |
| 345 | |
| 346 | m_block_index.clear(); |
| 347 | |
| 348 | m_blockfile_info.clear(); |
| 349 | m_last_blockfile = 0; |
| 350 | m_dirty_blockindex.clear(); |
| 351 | m_dirty_fileinfo.clear(); |
| 352 | } |
| 353 | |
| 354 | bool BlockManager::WriteBlockIndexDB() |
| 355 | { |