Use the new arroy upgrade method to move from 0.4 to 0.5

This commit is contained in:
Kerollmops 2025-03-11 14:52:46 +01:00
parent 3bc62f0549
commit 1d499ed9b2
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
6 changed files with 11 additions and 7 deletions

View file

@ -240,9 +240,12 @@ impl IndexScheduler {
};
let env = unsafe {
let options = heed::EnvOpenOptions::new();
let mut options = options.read_txn_without_tls();
options.max_dbs(Self::nb_db()).map_size(budget.task_db_size).open(&options.tasks_path)
let env_options = heed::EnvOpenOptions::new();
let mut env_options = env_options.read_txn_without_tls();
env_options
.max_dbs(Self::nb_db())
.map_size(budget.task_db_size)
.open(&options.tasks_path)
}?;
// We **must** starts by upgrading the version because it'll also upgrade the required database before we can open them