@@ -290,7 +290,6 @@ pub struct ConfigViaEnv {
290290 pub kvsrv_advertise_host : String ,
291291 pub kvsrv_api_port : u16 ,
292292 pub kvsrv_raft_dir : String ,
293- pub kvsrv_no_sync : bool ,
294293
295294 pub kvsrv_log_cache_max_items : u64 ,
296295 pub kvsrv_log_cache_capacity : u64 ,
@@ -348,7 +347,6 @@ impl From<Config> for ConfigViaEnv {
348347 kvsrv_advertise_host : cfg. raft_config . raft_advertise_host ,
349348 kvsrv_api_port : cfg. raft_config . raft_api_port ,
350349 kvsrv_raft_dir : cfg. raft_config . raft_dir ,
351- kvsrv_no_sync : cfg. raft_config . no_sync ,
352350
353351 kvsrv_log_cache_max_items : 1_000_000 ,
354352 kvsrv_log_cache_capacity : 1024 * 1024 * 1024 ,
@@ -385,7 +383,6 @@ impl Into<Config> for ConfigViaEnv {
385383 raft_advertise_host : self . kvsrv_advertise_host ,
386384 raft_api_port : self . kvsrv_api_port ,
387385 raft_dir : self . kvsrv_raft_dir ,
388- no_sync : self . kvsrv_no_sync ,
389386
390387 log_cache_max_items : self . kvsrv_log_cache_max_items ,
391388 log_cache_capacity : self . kvsrv_log_cache_capacity ,
@@ -482,12 +479,6 @@ pub struct RaftConfig {
482479 #[ clap( long, default_value = "./.databend/meta" ) ]
483480 pub raft_dir : String ,
484481
485- /// Whether to fsync meta to disk for every meta write(raft log, state machine etc).
486- /// No-sync brings risks of data loss during a crash.
487- /// You should only use this in a testing environment, unless YOU KNOW WHAT YOU ARE DOING.
488- #[ clap( long) ]
489- pub no_sync : bool ,
490-
491482 /// The maximum number of log entries for log entries cache. Default value is 1_000_000.
492483 #[ clap( long, default_value = "1000000" ) ]
493484 pub log_cache_max_items : u64 ,
@@ -614,7 +605,6 @@ impl From<RaftConfig> for InnerRaftConfig {
614605 raft_advertise_host : x. raft_advertise_host ,
615606 raft_api_port : x. raft_api_port ,
616607 raft_dir : x. raft_dir ,
617- no_sync : x. no_sync ,
618608
619609 log_cache_max_items : x. log_cache_max_items ,
620610 log_cache_capacity : x. log_cache_capacity ,
@@ -651,7 +641,6 @@ impl From<InnerRaftConfig> for RaftConfig {
651641 raft_advertise_host : inner. raft_advertise_host ,
652642 raft_api_port : inner. raft_api_port ,
653643 raft_dir : inner. raft_dir ,
654- no_sync : inner. no_sync ,
655644
656645 log_cache_max_items : inner. log_cache_max_items ,
657646 log_cache_capacity : inner. log_cache_capacity ,
0 commit comments