Skip to content

Commit

Permalink
Issue #2066 Compile fixes to errors appeared after merging develop.
Browse files Browse the repository at this point in the history
  • Loading branch information
vogel76 authored and mvandeberg committed Mar 21, 2018
1 parent 61ab993 commit f3093c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/plugins/rocksdb/rocksdb_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ void rocksdb_plugin::impl::importData(unsigned int blockLimit)
_excludedOps = 0;

benchmark_dumper dumper;
dumper.initialize();
dumper.initialize([](benchmark_dumper::database_object_sizeof_cntr_t&){}, "rocksdb_data_import.json");

_mainDb.foreach_operation([blockLimit, &blockNo, &lastBlock, this](
const signed_block_header& prevBlockHeader, const signed_block& block, const signed_transaction& tx,
Expand All @@ -1111,7 +1111,7 @@ void rocksdb_plugin::impl::importData(unsigned int blockLimit)
if(_collectedOps != 0)
flushWriteBuffer();

const auto& measure = dumper.measure(blockNo);
const auto& measure = dumper.measure(blockNo, [](benchmark_dumper::index_memory_details_cntr_t&, bool){});
ilog( "RocksDb data import - Performance report at block ${n}. Elapsed time: ${rt} ms (real), ${ct} ms (cpu). Memory usage: ${cm} (current), ${pm} (peak) kilobytes.",
("n", blockNo)
("rt", measure.real_ms)
Expand Down

0 comments on commit f3093c8

Please sign in to comment.