aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-02-21 00:51:13 +0200
committerRiccardo Spagni <ric@spagni.net>2017-02-21 00:51:13 +0200
commit675434ffab89fd22b03398ae2075fee42ed643e0 (patch)
tree3d3b3f12ded75b623db2c96e3d5bcc6ab38e3c56 /src/blockchain_db/lmdb/db_lmdb.h
parentMerge pull request #1752 (diff)
parentGet rid of directory lock (diff)
downloadmonero-675434ffab89fd22b03398ae2075fee42ed643e0.tar.xz
Merge pull request #1748
bed2d9f2 Get rid of directory lock (Howard Chu) 2e913676 Handle map resizes from other processes (Howard Chu) bf1348b7 Can't cache num_txs or num_outputs either (Howard Chu) dc53e9ee Add a few read txns to streamline (Howard Chu)
Diffstat (limited to 'src/blockchain_db/lmdb/db_lmdb.h')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.h b/src/blockchain_db/lmdb/db_lmdb.h
index e7faf8cdc..b4e3c7174 100644
--- a/src/blockchain_db/lmdb/db_lmdb.h
+++ b/src/blockchain_db/lmdb/db_lmdb.h
@@ -312,6 +312,9 @@ private:
virtual void remove_spent_key(const crypto::key_image& k_image);
+ uint64_t num_txs() const;
+ uint64_t num_outputs() const;
+
// Hard fork
virtual void set_hard_fork_version(uint64_t height, uint8_t version);
virtual uint8_t get_hard_fork_version(uint64_t height) const;
@@ -369,10 +372,8 @@ private:
MDB_dbi m_properties;
- uint64_t m_num_txs;
- uint64_t m_num_outputs;
mutable uint64_t m_cum_size; // used in batch size estimation
- mutable int m_cum_count;
+ mutable unsigned int m_cum_count;
std::string m_folder;
mdb_txn_safe* m_write_txn; // may point to either a short-lived txn or a batch txn
mdb_txn_safe* m_write_batch_txn; // persist batch txn outside of BlockchainLMDB