mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
Notify old configuration entries for node db
This commit is contained in:
@@ -938,6 +938,19 @@ static void addTxnSeqField ()
|
||||
|
||||
void Application::updateTables ()
|
||||
{
|
||||
if (theConfig.NODE_DB.empty ())
|
||||
{
|
||||
Log (lsFATAL) << "The NODE_DB configuration setting MUST be set";
|
||||
StopSustain ();
|
||||
exit (1);
|
||||
}
|
||||
else if (theConfig.NODE_DB == "LevelDB" || theConfig.NODE_DB == "SQLite")
|
||||
{
|
||||
Log (lsFATAL) << "The NODE_DB setting has been updated, your value is out of date";
|
||||
StopSustain ();
|
||||
exit (1);
|
||||
}
|
||||
|
||||
// perform any needed table updates
|
||||
assert (schemaHas (getApp().getTxnDB (), "AccountTransactions", 0, "TransID"));
|
||||
assert (!schemaHas (getApp().getTxnDB (), "AccountTransactions", 0, "foobar"));
|
||||
|
||||
Reference in New Issue
Block a user