aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.h
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2016-02-14 20:27:43 +0000
committerHoward Chu <hyc@symas.com>2016-02-15 00:22:09 +0000
commitd8f9bb380cf70a80963a12e27baeab66474b13a2 (patch)
tree156b762faf6de288bcd5b09bb76485e200378c75 /src/blockchain_db/lmdb/db_lmdb.h
parentWin32 import batchsize tweaks (diff)
downloadmonero-d8f9bb380cf70a80963a12e27baeab66474b13a2.tar.xz
Keep a running blocksize count
Used in batch size estimation, avoids rereading already processed blocks during import
Diffstat (limited to '')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.h b/src/blockchain_db/lmdb/db_lmdb.h
index e88bcd01b..1964bfe45 100644
--- a/src/blockchain_db/lmdb/db_lmdb.h
+++ b/src/blockchain_db/lmdb/db_lmdb.h
@@ -306,6 +306,8 @@ private:
uint64_t m_height;
uint64_t m_num_outputs;
+ mutable uint64_t m_cum_size; // used in batch size estimation
+ mutable 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