lmdb: return an error on unsuccessful migration

This commit is contained in:
ardocrat
2026-05-18 12:48:17 +03:00
parent 9f29af8e14
commit 2dd726f17b
+2 -1
View File
@@ -84,7 +84,7 @@ where
const DEFAULT_DB_VERSION: ProtocolVersion = ProtocolVersion(3); const DEFAULT_DB_VERSION: ProtocolVersion = ProtocolVersion(3);
/// Default environment. /// Default environment.
const DEFAULT_ENV_NAME: &'static str = "lmdb"; pub const DEFAULT_ENV_NAME: &'static str = "lmdb";
/// Default multi-database environment without prefixes. /// Default multi-database environment without prefixes.
const DEFAULT_MULTI_DB_ENV_NAME: &'static str = "multi_lmdb"; const DEFAULT_MULTI_DB_ENV_NAME: &'static str = "multi_lmdb";
/// Prefix key separator. /// Prefix key separator.
@@ -263,6 +263,7 @@ impl Store {
error!("Can not clear new DB after unsuccessful migration: {:?}", e) error!("Can not clear new DB after unsuccessful migration: {:?}", e)
} }
} }
return Err(e);
} }
} }
} }