remove cli arg "--no-accounts-db-caching" (#28912)
This commit is contained in:
parent
5dfb974a29
commit
f0ef316b19
|
@ -1322,10 +1322,6 @@ fn main() {
|
|||
.long("no-bpf-jit")
|
||||
.takes_value(false)
|
||||
.help("Disable the just-in-time compiler and instead use the interpreter for BP");
|
||||
let no_accounts_db_caching_arg = Arg::with_name("no_accounts_db_caching")
|
||||
.long("no-accounts-db-caching")
|
||||
.takes_value(false)
|
||||
.help("Disables accounts-db caching");
|
||||
let accounts_index_bins = Arg::with_name("accounts_index_bins")
|
||||
.long("accounts-index-bins")
|
||||
.value_name("BINS")
|
||||
|
@ -1800,7 +1796,6 @@ fn main() {
|
|||
.arg(&ancient_append_vecs)
|
||||
.arg(&halt_at_slot_store_hash_raw_data)
|
||||
.arg(&hard_forks_arg)
|
||||
.arg(&no_accounts_db_caching_arg)
|
||||
.arg(&accounts_db_test_hash_calculation_arg)
|
||||
.arg(&no_os_memory_stats_reporting_arg)
|
||||
.arg(&no_bpf_jit_arg)
|
||||
|
@ -2781,7 +2776,7 @@ fn main() {
|
|||
run_final_accounts_hash_calc: true,
|
||||
halt_at_slot: value_t!(arg_matches, "halt_at_slot", Slot).ok(),
|
||||
debug_keys,
|
||||
accounts_db_caching_enabled: !arg_matches.is_present("no_accounts_db_caching"),
|
||||
accounts_db_caching_enabled: true,
|
||||
limit_load_slot_count_from_snapshot: value_t!(
|
||||
arg_matches,
|
||||
"limit_load_slot_count_from_snapshot",
|
||||
|
|
|
@ -332,7 +332,7 @@ fn main() {
|
|||
let mut genesis = TestValidatorGenesis::default();
|
||||
genesis.max_ledger_shreds = value_of(&matches, "limit_ledger_size");
|
||||
genesis.max_genesis_archive_unpacked_size = Some(u64::MAX);
|
||||
genesis.accounts_db_caching_enabled = !matches.is_present("no_accounts_db_caching");
|
||||
genesis.accounts_db_caching_enabled = true;
|
||||
genesis.log_messages_bytes_limit = value_t!(matches, "log_messages_bytes_limit", usize).ok();
|
||||
genesis.transaction_account_lock_limit =
|
||||
value_t!(matches, "transaction_account_lock_limit", usize).ok();
|
||||
|
|
|
@ -1157,11 +1157,6 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> {
|
|||
.value_name("KEY")
|
||||
.help("When account indexes are enabled, only include specific keys in the index. This overrides --account-index-exclude-key."),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("no_accounts_db_caching")
|
||||
.long("no-accounts-db-caching")
|
||||
.help("Disables accounts caching"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("accounts_db_verify_refcounts")
|
||||
.long("accounts-db-verify-refcounts")
|
||||
|
@ -1503,7 +1498,6 @@ fn get_deprecated_arguments() -> Vec<Arg<'static, 'static>> {
|
|||
vec![
|
||||
Arg::with_name("accounts_db_caching_enabled")
|
||||
.long("accounts-db-caching-enabled")
|
||||
.conflicts_with("no_accounts_db_caching")
|
||||
.hidden(true),
|
||||
Arg::with_name("accounts_db_index_hashing")
|
||||
.long("accounts-db-index-hashing")
|
||||
|
@ -2149,11 +2143,6 @@ pub fn test_app<'a>(version: &'a str, default_args: &'a DefaultTestArgs) -> App<
|
|||
.multiple(true)
|
||||
.help("Specify the configuration file for the Geyser plugin."),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("no_accounts_db_caching")
|
||||
.long("no-accounts-db-caching")
|
||||
.help("Disables accounts caching"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("deactivate_feature")
|
||||
.long("deactivate-feature")
|
||||
|
|
|
@ -1150,7 +1150,7 @@ pub fn main() {
|
|||
.unwrap_or(poh_service::DEFAULT_HASHES_PER_BATCH),
|
||||
process_ledger_before_services: matches.is_present("process_ledger_before_services"),
|
||||
account_indexes,
|
||||
accounts_db_caching_enabled: !matches.is_present("no_accounts_db_caching"),
|
||||
accounts_db_caching_enabled: true,
|
||||
accounts_db_test_hash_calculation: matches.is_present("accounts_db_test_hash_calculation"),
|
||||
accounts_db_config,
|
||||
accounts_db_skip_shrink: matches.is_present("accounts_db_skip_shrink"),
|
||||
|
|
Loading…
Reference in New Issue