From 0e9461c3b28c08cb95bd809ba2668bf41245fded Mon Sep 17 00:00:00 2001 From: hashmap Date: Thu, 24 Jan 2019 13:20:40 +0100 Subject: [PATCH] Disable thread local storage for LMDB connection --- chain/src/error.rs | 2 +- store/src/lmdb.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chain/src/error.rs b/chain/src/error.rs index 9de778a50..637540de7 100644 --- a/chain/src/error.rs +++ b/chain/src/error.rs @@ -102,7 +102,7 @@ pub enum ErrorKind { #[fail(display = "Invalid TxHashSet: {}", _0)] InvalidTxHashSet(String), /// Internal issue when trying to save or load data from store - #[fail(display = "Store Error: {}", _1)] + #[fail(display = "Store Error: {}, reason: {}", _1, _0)] StoreErr(store::Error, String), /// Internal issue when trying to save or load data from append only files #[fail(display = "File Read Error: {}", _0)] diff --git a/store/src/lmdb.rs b/store/src/lmdb.rs index 365da6983..016bc29a4 100644 --- a/store/src/lmdb.rs +++ b/store/src/lmdb.rs @@ -80,7 +80,7 @@ pub fn new_named_env(path: String, name: String) -> lmdb::Environment { }); unsafe { env_builder - .open(&full_path, lmdb::open::Flags::empty(), 0o600) + .open(&full_path, lmdb::open::NOTLS, 0o600) .unwrap() } }