Merge pull request #2469 from cyclefortytwo/head-error

Disable thread local storage for LMDB connection
This commit is contained in:
hashmap 2019-01-24 21:57:02 +01:00 committed by GitHub
commit 4a54039c52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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)]

View file

@ -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()
}
}