mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
WIP rebase on main
This commit is contained in:
parent
0f94ef8abc
commit
c3552cecdf
20 changed files with 158 additions and 197 deletions
|
@ -1,4 +1,4 @@
|
|||
use std::collections::BTreeMap;
|
||||
use std::{collections::BTreeMap, path::PathBuf};
|
||||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
@ -378,6 +378,13 @@ impl IndexController {
|
|||
Ok(stats)
|
||||
}
|
||||
|
||||
pub async fn dump(&self, path: PathBuf) -> anyhow::Result<String> {
|
||||
eprintln!("index_controller::mod called");
|
||||
let res = dump::perform_dump(self, path).await?;
|
||||
eprintln!("index_controller::mod finished");
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
pub async fn get_all_stats(&self) -> anyhow::Result<Stats> {
|
||||
let update_infos = self.update_handle.get_info().await?;
|
||||
let mut database_size = self.get_uuids_size().await? + update_infos.size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue