db_lmdb: avoid pointless division

This commit is contained in:
moneromooo-monero 2018-12-05 19:27:39 +00:00
parent 833269834d
commit 5511563e92
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -3106,7 +3106,7 @@ uint64_t BlockchainLMDB::add_block(const block& blk, size_t block_weight, const
check_open(); check_open();
uint64_t m_height = height(); uint64_t m_height = height();
if (m_height % 1000 == 0) if (m_height % 1024 == 0)
{ {
// for batch mode, DB resize check is done at start of batch transaction // for batch mode, DB resize check is done at start of batch transaction
if (! m_batch_active && need_resize()) if (! m_batch_active && need_resize())