Skip to content

Commit b654a1d

Browse files
committed
Don't remove AH storage twice
1 parent 3e59986 commit b654a1d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

libraries/plugins/account_history_rocksdb/account_history_rocksdb_plugin.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,13 +1074,6 @@ void account_history_rocksdb_plugin::impl::on_pre_reindex(const hive::chain::rei
10741074
_provider->shutdownDb();
10751075
std::string strPath = _storagePath.string();
10761076

1077-
if( note.force_replay )
1078-
{
1079-
ilog("Received onReindexStart request, attempting to clean database storage.");
1080-
auto s = ::rocksdb::DestroyDB(strPath, ::rocksdb::Options());
1081-
checkStatus(s);
1082-
}
1083-
10841077
_provider->openDb( _mainDb.get_last_irreversible_block_num() );
10851078
_initialized = true; // prevent reopening of database during plugin_startup
10861079

0 commit comments

Comments
 (0)