Skip to content

Commit

Permalink
Clear indexes on close()
Browse files Browse the repository at this point in the history
Indexes were not being cleared on close(), meaning the database was not
properly closed and could not be safely reopened. Fixed.
  • Loading branch information
nathanielhourt committed Apr 6, 2017
1 parent 34d8f63 commit a5ed230
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chainbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ namespace chainbase {
{
_segment.reset();
_meta.reset();
_index_list.clear();
_index_map.clear();
_data_dir = bfs::path();
}

Expand Down

0 comments on commit a5ed230

Please sign in to comment.