mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Use the new arroy upgrade method to move from 0.4 to 0.5
This commit is contained in:
parent
3bc62f0549
commit
1d499ed9b2
6 changed files with 11 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue