db: remove wal disabling / fast-and-loose option. (#8963)
* parity: highlight --fast-and-loose is not recommended. * parity: remove fast-and-loose option, ref #1765 * db: remove db wal from options, it's always enabled * db: remove wal from rocksdb helpers * cli: fix wallet import test * ethcore: fix client config tests * parity: proper deprecated handling for fast-and-loose * ethcore-client: fix config * parity: mark fast-and-loose removed * parity: fix test_find_deprecated * parity: fix type for fast-and-loose flag * lock file
This commit is contained in:
@@ -134,7 +134,6 @@ impl Configuration {
|
||||
let tracing = self.args.arg_tracing.parse()?;
|
||||
let fat_db = self.args.arg_fat_db.parse()?;
|
||||
let compaction = self.args.arg_db_compaction.parse()?;
|
||||
let wal = !self.args.flag_fast_and_loose;
|
||||
let warp_sync = !self.args.flag_no_warp;
|
||||
let geth_compatibility = self.args.flag_geth;
|
||||
let dapps_conf = self.dapps_config();
|
||||
@@ -236,7 +235,6 @@ impl Configuration {
|
||||
pruning_history: pruning_history,
|
||||
pruning_memory: self.args.arg_pruning_memory,
|
||||
compaction: compaction,
|
||||
wal: wal,
|
||||
tracing: tracing,
|
||||
fat_db: fat_db,
|
||||
vm_type: vm_type,
|
||||
@@ -258,7 +256,6 @@ impl Configuration {
|
||||
pruning_history: pruning_history,
|
||||
pruning_memory: self.args.arg_pruning_memory,
|
||||
compaction: compaction,
|
||||
wal: wal,
|
||||
tracing: tracing,
|
||||
fat_db: fat_db,
|
||||
from_block: to_block_id(&self.args.arg_export_blocks_from)?,
|
||||
@@ -277,7 +274,6 @@ impl Configuration {
|
||||
pruning_history: pruning_history,
|
||||
pruning_memory: self.args.arg_pruning_memory,
|
||||
compaction: compaction,
|
||||
wal: wal,
|
||||
tracing: tracing,
|
||||
fat_db: fat_db,
|
||||
at: to_block_id(&self.args.arg_export_state_at)?,
|
||||
@@ -302,7 +298,6 @@ impl Configuration {
|
||||
fat_db: fat_db,
|
||||
compaction: compaction,
|
||||
file_path: self.args.arg_snapshot_file.clone(),
|
||||
wal: wal,
|
||||
kind: snapshot::Kind::Take,
|
||||
block_at: to_block_id(&self.args.arg_snapshot_at)?,
|
||||
};
|
||||
@@ -319,7 +314,6 @@ impl Configuration {
|
||||
fat_db: fat_db,
|
||||
compaction: compaction,
|
||||
file_path: self.args.arg_restore_file.clone(),
|
||||
wal: wal,
|
||||
kind: snapshot::Kind::Restore,
|
||||
block_at: to_block_id("latest")?, // unimportant.
|
||||
};
|
||||
@@ -331,7 +325,6 @@ impl Configuration {
|
||||
spec: spec,
|
||||
pruning: pruning,
|
||||
compaction: compaction,
|
||||
wal: wal,
|
||||
};
|
||||
Cmd::ExportHardcodedSync(export_hs_cmd)
|
||||
} else {
|
||||
@@ -372,7 +365,6 @@ impl Configuration {
|
||||
tracing: tracing,
|
||||
fat_db: fat_db,
|
||||
compaction: compaction,
|
||||
wal: wal,
|
||||
vm_type: vm_type,
|
||||
warp_sync: warp_sync,
|
||||
warp_barrier: self.args.arg_warp_barrier,
|
||||
@@ -1281,7 +1273,6 @@ mod tests {
|
||||
pruning_history: 64,
|
||||
pruning_memory: 32,
|
||||
compaction: Default::default(),
|
||||
wal: true,
|
||||
tracing: Default::default(),
|
||||
fat_db: Default::default(),
|
||||
vm_type: VMType::Interpreter,
|
||||
@@ -1306,7 +1297,6 @@ mod tests {
|
||||
pruning_memory: 32,
|
||||
format: Default::default(),
|
||||
compaction: Default::default(),
|
||||
wal: true,
|
||||
tracing: Default::default(),
|
||||
fat_db: Default::default(),
|
||||
from_block: BlockId::Number(1),
|
||||
@@ -1329,7 +1319,6 @@ mod tests {
|
||||
pruning_memory: 32,
|
||||
format: Default::default(),
|
||||
compaction: Default::default(),
|
||||
wal: true,
|
||||
tracing: Default::default(),
|
||||
fat_db: Default::default(),
|
||||
at: BlockId::Latest,
|
||||
@@ -1354,7 +1343,6 @@ mod tests {
|
||||
pruning_memory: 32,
|
||||
format: Some(DataFormat::Hex),
|
||||
compaction: Default::default(),
|
||||
wal: true,
|
||||
tracing: Default::default(),
|
||||
fat_db: Default::default(),
|
||||
from_block: BlockId::Number(1),
|
||||
@@ -1442,7 +1430,6 @@ mod tests {
|
||||
mode: Default::default(),
|
||||
tracing: Default::default(),
|
||||
compaction: Default::default(),
|
||||
wal: true,
|
||||
vm_type: Default::default(),
|
||||
geth_compatibility: false,
|
||||
net_settings: Default::default(),
|
||||
|
||||
Reference in New Issue
Block a user