Skip to content

Commit

Permalink
Remove db-auto-remove-logs
Browse files Browse the repository at this point in the history
  • Loading branch information
IPGlider committed Jan 10, 2017
1 parent 1229c68 commit aff2817
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/common/command_line.cpp
Expand Up @@ -111,11 +111,6 @@ namespace command_line
, "Max number of threads to use when preparing block hashes in groups."
, 4
};
const command_line::arg_descriptor<uint64_t> arg_db_auto_remove_logs = {
"db-auto-remove-logs"
, "For BerkeleyDB only. Remove transactions logs automatically."
, 1
};
const command_line::arg_descriptor<uint64_t> arg_show_time_stats = {
"show-time-stats"
, "Show time-stats when processing blocks/txs and disk synchronization."
Expand Down
1 change: 0 additions & 1 deletion src/common/command_line.h
Expand Up @@ -217,7 +217,6 @@ namespace command_line
extern const arg_descriptor<std::string> arg_db_sync_mode;
extern const arg_descriptor<uint64_t> arg_fast_block_sync;
extern const arg_descriptor<uint64_t> arg_prep_blocks_threads;
extern const arg_descriptor<uint64_t> arg_db_auto_remove_logs;
extern const arg_descriptor<uint64_t> arg_show_time_stats;
extern const arg_descriptor<size_t> arg_block_sync_size;
}
3 changes: 0 additions & 3 deletions src/cryptonote_core/cryptonote_core.cpp
Expand Up @@ -141,7 +141,6 @@ namespace cryptonote
command_line::add_arg(desc, command_line::arg_fast_block_sync);
command_line::add_arg(desc, command_line::arg_db_sync_mode);
command_line::add_arg(desc, command_line::arg_show_time_stats);
command_line::add_arg(desc, command_line::arg_db_auto_remove_logs);
command_line::add_arg(desc, command_line::arg_block_sync_size);
}
//-----------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -368,8 +367,6 @@ namespace cryptonote
blocks_per_sync = bps;
}

bool auto_remove_logs = command_line::get_arg(vm, command_line::arg_db_auto_remove_logs) != 0;
db->set_auto_remove_logs(auto_remove_logs);
db->open(filename, db_flags);
if(!db->m_open)
return false;
Expand Down

0 comments on commit aff2817

Please sign in to comment.