mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
fix snapshot path
This commit is contained in:
parent
79d09705d8
commit
d029464de8
2 changed files with 20 additions and 9 deletions
|
@ -98,6 +98,10 @@ impl IndexController {
|
|||
update_handle.clone(),
|
||||
Duration::from_secs(options.snapshot_interval_sec),
|
||||
options.snapshot_dir.clone(),
|
||||
options.db_path
|
||||
.file_name()
|
||||
.map(|n| n.to_owned().into_string().expect("invalid path"))
|
||||
.unwrap_or_else(|| String::from("data.ms")),
|
||||
);
|
||||
|
||||
tokio::task::spawn(snapshot_service.run());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue