mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-04 10:35:46 +01:00
Fix and crash when the tasks path is unknown
This commit is contained in:
parent
01c13c98ac
commit
719fdd701b
@ -422,9 +422,11 @@ impl IndexScheduler {
|
|||||||
tempfile::NamedTempFile::new_in(inner.env.path()).unwrap();
|
tempfile::NamedTempFile::new_in(inner.env.path()).unwrap();
|
||||||
|
|
||||||
log::info!("Downloading the index scheduler database.");
|
log::info!("Downloading the index scheduler database.");
|
||||||
let tasks_snapshot = format!("{snapshot_dir}/tasks.mdb");
|
let tasks_snapshot = format!("{snapshot_dir}.tasks.mdb");
|
||||||
s3.get_object_to_writer(tasks_snapshot, &mut tasks_file)
|
let status = s3
|
||||||
|
.get_object_to_writer(tasks_snapshot, &mut tasks_file)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
assert!(matches!(status, 200 | 202));
|
||||||
|
|
||||||
log::info!("Downloading the indexes databases");
|
log::info!("Downloading the indexes databases");
|
||||||
let indexes_files =
|
let indexes_files =
|
||||||
|
Loading…
Reference in New Issue
Block a user