Skip to content

Commit

Permalink
Issue #2066 History pruning is disabled by default. Warning is printe…
Browse files Browse the repository at this point in the history
…d about prune option deprecation.
  • Loading branch information
vogel76 authored and mvandeberg committed Mar 20, 2018
1 parent 044dc54 commit 49bd77a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libraries/plugins/rocksdb/rocksdb_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ class rocksdb_plugin::impl final
flat_set<std::string> _op_list;
flat_set<std::string> _blacklisted_op_list;

bool _prune = true;
bool _prune = false;
};

void rocksdb_plugin::impl::collectOptions(const boost::program_options::variables_map& options)
Expand Down Expand Up @@ -643,6 +643,13 @@ void rocksdb_plugin::impl::collectOptions(const boost::program_options::variable

if(options.count( "history-disable-pruning"))
_prune = !options["history-disable-pruning"].as<bool>();

if(_prune)
{
wlog("****************************************************************************************************");
wlog("* History pruning is deprecated. Please don't enable it. *");
wlog("****************************************************************************************************");
}
}

inline bool rocksdb_plugin::impl::isTrackedAccount(const account_name_type& name) const
Expand Down

0 comments on commit 49bd77a

Please sign in to comment.