From a5ed230d524de396437644da84c38b357c0eca5c Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Thu, 6 Apr 2017 09:50:55 -0500 Subject: [PATCH] Clear indexes on close() Indexes were not being cleared on close(), meaning the database was not properly closed and could not be safely reopened. Fixed. --- src/chainbase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chainbase.cpp b/src/chainbase.cpp index f6673ebbd9d..eb982363d6e 100644 --- a/src/chainbase.cpp +++ b/src/chainbase.cpp @@ -121,6 +121,8 @@ namespace chainbase { { _segment.reset(); _meta.reset(); + _index_list.clear(); + _index_map.clear(); _data_dir = bfs::path(); }