aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.h
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2018-01-31 18:18:01 +0000
committerHoward Chu <hyc@symas.com>2018-01-31 18:18:01 +0000
commit84a8b2da140c20be3b0c4042160524d226634d0f (patch)
treef82ee31361fe303a6cf4f9a247570c885638f42c /src/blockchain_db/lmdb/db_lmdb.h
parentMerge pull request #3091 (diff)
downloadmonero-84a8b2da140c20be3b0c4042160524d226634d0f.tar.xz
Don't create readtxn until after txn_safe gate check
Diffstat (limited to 'src/blockchain_db/lmdb/db_lmdb.h')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.h b/src/blockchain_db/lmdb/db_lmdb.h
index ecd14f11b..e4c1fef84 100644
--- a/src/blockchain_db/lmdb/db_lmdb.h
+++ b/src/blockchain_db/lmdb/db_lmdb.h
@@ -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*()
{