@@ -971,12 +971,12 @@ impl fmt::Debug for RocksImpl {
971
971
pub struct RocksDBWalsOpener ;
972
972
973
973
impl RocksDBWalsOpener {
974
- fn build_rocks_impl (
974
+ fn build_manager (
975
975
wal_path : PathBuf ,
976
976
runtime : Arc < Runtime > ,
977
977
config : RocksDBConfig ,
978
978
) -> Result < WalManagerRef > {
979
- let data_wal = Builder :: new ( wal_path, runtime)
979
+ let rocks = Builder :: new ( wal_path, runtime)
980
980
. max_subcompactions ( config. max_subcompactions )
981
981
. max_background_jobs ( config. max_background_jobs )
982
982
. enable_statistics ( config. enable_statistics )
@@ -988,7 +988,7 @@ impl RocksDBWalsOpener {
988
988
. fifo_compaction_max_table_files_size ( config. fifo_compaction_max_table_files_size . 0 )
989
989
. build ( ) ?;
990
990
991
- Ok ( Arc :: new ( data_wal ) )
991
+ Ok ( Arc :: new ( rocks ) )
992
992
}
993
993
}
994
994
@@ -1012,19 +1012,19 @@ impl WalsOpener for RocksDBWalsOpener {
1012
1012
1013
1013
// Build data wal
1014
1014
let data_wal = if rocksdb_wal_config. disable_data {
1015
- Arc :: new ( crate :: dummy:: DoNothing ) as Arc < _ >
1015
+ Arc :: new ( crate :: dummy:: DoNothing )
1016
1016
} else {
1017
- Self :: build_rocks_impl (
1017
+ Self :: build_manager (
1018
1018
data_path. join ( WAL_DIR_NAME ) ,
1019
1019
write_runtime. clone ( ) ,
1020
1020
rocksdb_wal_config. data_namespace ,
1021
1021
) ?
1022
1022
} ;
1023
1023
1024
1024
// Build manifest wal
1025
- let manifest_wal = Self :: build_rocks_impl (
1025
+ let manifest_wal = Self :: build_manager (
1026
1026
data_path. join ( MANIFEST_DIR_NAME ) ,
1027
- write_runtime. clone ( ) ,
1027
+ write_runtime,
1028
1028
rocksdb_wal_config. meta_namespace ,
1029
1029
) ?;
1030
1030
0 commit comments