mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
feat(http): store processing as RwLock<Option<Uuid>> in index_actor
This commit is contained in:
parent
87412f63ef
commit
698a1ea582
2 changed files with 28 additions and 19 deletions
|
@ -354,13 +354,7 @@ impl IndexController {
|
|||
pub async fn get_stats(&self, uid: String) -> anyhow::Result<IndexStats> {
|
||||
let uuid = self.uuid_resolver.get(uid.clone()).await?;
|
||||
|
||||
let stats = self.index_handle.get_index_stats(uuid);
|
||||
let is_indexing = self.update_handle.is_locked(uuid);
|
||||
|
||||
Ok(IndexStats {
|
||||
is_indexing: is_indexing.await?,
|
||||
..stats.await?
|
||||
})
|
||||
Ok(self.index_handle.get_index_stats(uuid).await?)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue