mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +00:00
Do not upgrade db_version on metadata reading failure. (#11081)
This commit is contained in:
@@ -73,7 +73,7 @@ pub fn open<H: Clone + AsRef<[u8]>>(
|
||||
if upgrade {
|
||||
log::info!("Upgrading database metadata.");
|
||||
if let Some(meta) = parity_db::Options::load_metadata(path)? {
|
||||
config.write_metadata(path, &meta.salt)?;
|
||||
config.write_metadata_with_version(path, &meta.salt, Some(meta.version))?;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user