lmdb: return an error on unsuccessful migration
This commit is contained in:
+2
-1
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user