mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 10:17:57 +00:00
Do not upgrade db_version on metadata reading failure. (#11081)
This commit is contained in:
@@ -275,6 +275,7 @@ fn open_parity_db<Block: BlockT>(path: &Path, db_type: DatabaseType, create: boo
|
||||
match crate::parity_db::open(path, db_type, create, false) {
|
||||
Ok(db) => Ok(db),
|
||||
Err(parity_db::Error::InvalidConfiguration(_)) => {
|
||||
log::warn!("Invalid parity db configuration, attempting database metadata update.");
|
||||
// Try to update the database with the new config
|
||||
Ok(crate::parity_db::open(path, db_type, create, true)?)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user