fix(hydra): Fix rocksdb compile errors

This commit is contained in:
nexy7574
2025-09-17 21:32:46 +01:00
parent 502fbbf0cd
commit c4a2773230
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -38,7 +38,6 @@ pub(crate) fn db_options(config: &Config, env: &Env, row_cache: &Cache) -> Resul
} }
if config.rocksdb_optimize_for_spinning_disks { if config.rocksdb_optimize_for_spinning_disks {
// speeds up opening DB on hard drives // speeds up opening DB on hard drives
opts.set_skip_checking_sst_file_sizes_on_db_open(true);
opts.set_skip_stats_update_on_db_open(true); opts.set_skip_stats_update_on_db_open(true);
//opts.set_max_file_opening_threads(threads.try_into().unwrap()); //opts.set_max_file_opening_threads(threads.try_into().unwrap());
} else { } else {
+1 -1
View File
@@ -227,7 +227,7 @@ where
let write_options = &self.write_options; let write_options = &self.write_options;
self.db self.db
.db .db
.write_opt(batch, write_options) .write_opt(&batch, write_options)
.or_else(or_else) .or_else(or_else)
.expect("database insert batch error"); .expect("database insert batch error");