* Add RocksDB support * Remove unused variable * node.confirm_locked test is using the wrong store * Fix Tests, ASAN issues and other improvements * Delete column family after dropping it * (Unrelated) Output to cerr if there is a problem reading genesis block * Vacuum fails if the backup directory does not exist * Copy WAL log files over when doing snapshot/vacuuming and open the database to explicitly flush them * Don't atomic_flush yet since WAL are enabled by default
32 lines
816 B
C++
32 lines
816 B
C++
#pragma once
|
|
|
|
#include <nano/lib/errors.hpp>
|
|
|
|
#include <chrono>
|
|
|
|
namespace nano
|
|
{
|
|
class jsonconfig;
|
|
class tomlconfig;
|
|
class txn_tracking_config final
|
|
{
|
|
public:
|
|
/** If true, enable tracking for transaction read/writes held open longer than the min time variables */
|
|
bool enable{ false };
|
|
std::chrono::milliseconds min_read_txn_time{ 5000 };
|
|
std::chrono::milliseconds min_write_txn_time{ 500 };
|
|
bool ignore_writes_below_block_processor_max_time{ true };
|
|
};
|
|
|
|
/** Configuration options for diagnostics information */
|
|
class diagnostics_config final
|
|
{
|
|
public:
|
|
nano::error serialize_json (nano::jsonconfig &) const;
|
|
nano::error deserialize_json (nano::jsonconfig &);
|
|
nano::error serialize_toml (nano::tomlconfig &) const;
|
|
nano::error deserialize_toml (nano::tomlconfig &);
|
|
|
|
txn_tracking_config txn_tracking;
|
|
};
|
|
}
|