1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-10-06 19:00:48 +00:00

fix(hydra): Fix rocksdb compile errors

This commit is contained in:
nexy7574 2025-09-16 12:27:30 +01:00
parent 502fbbf0cd
commit c4a2773230
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

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 {
// 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_max_file_opening_threads(threads.try_into().unwrap());
} else {

View file

@ -227,7 +227,7 @@ where
let write_options = &self.write_options;
self.db
.db
.write_opt(batch, write_options)
.write_opt(&batch, write_options)
.or_else(or_else)
.expect("database insert batch error");