mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Improve NodeStore to ShardStore imports
* Run the import process in a background thread * Prevent online_delete from removing ledgers pending import
This commit is contained in:
@@ -916,7 +916,7 @@ public:
|
||||
using namespace std::chrono;
|
||||
auto const start = steady_clock::now();
|
||||
|
||||
m_nodeStore->import(*source);
|
||||
m_nodeStore->importDatabase(*source);
|
||||
|
||||
auto const elapsed =
|
||||
duration_cast<seconds>(steady_clock::now() - start);
|
||||
@@ -2109,7 +2109,7 @@ ApplicationImp::nodeToShards()
|
||||
JLOG(m_journal.fatal()) << "Invalid [shard_db] configuration";
|
||||
return false;
|
||||
}
|
||||
shardStore_->import(getNodeStore());
|
||||
shardStore_->importDatabase(getNodeStore());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user