Don't create readtxn until after txn_safe gate check

This commit is contained in:
Howard Chu
2018-01-31 18:18:01 +00:00
parent 35d5aa36c9
commit 84a8b2da14
2 changed files with 10 additions and 2 deletions
+1
View File
@@ -112,6 +112,7 @@ struct mdb_txn_safe
// BlockchainLMDB destructor to call mdb_txn_safe destructor, as that's too late
// to properly abort, since mdb_env_close would have been called earlier.
void abort();
void uncheck();
operator MDB_txn*()
{