From 2dd726f17b07b348060131e63d1a1bd605bc759c Mon Sep 17 00:00:00 2001 From: ardocrat Date: Mon, 18 May 2026 12:48:17 +0300 Subject: [PATCH] lmdb: return an error on unsuccessful migration --- store/src/lmdb.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/store/src/lmdb.rs b/store/src/lmdb.rs index b0526ae2..2f0452e4 100644 --- a/store/src/lmdb.rs +++ b/store/src/lmdb.rs @@ -84,7 +84,7 @@ where const DEFAULT_DB_VERSION: ProtocolVersion = ProtocolVersion(3); /// Default environment. -const DEFAULT_ENV_NAME: &'static str = "lmdb"; +pub const DEFAULT_ENV_NAME: &'static str = "lmdb"; /// Default multi-database environment without prefixes. const DEFAULT_MULTI_DB_ENV_NAME: &'static str = "multi_lmdb"; /// Prefix key separator. @@ -263,6 +263,7 @@ impl Store { error!("Can not clear new DB after unsuccessful migration: {:?}", e) } } + return Err(e); } } }