mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Introduce an Index mathod to retrieve the currently processed update
This commit is contained in:
parent
c9618793e3
commit
3278d22279
2 changed files with 8 additions and 2 deletions
|
@ -186,6 +186,13 @@ impl Index {
|
|||
)
|
||||
}
|
||||
|
||||
pub fn current_update_id<T: rkv::Readable>(&self, reader: &T) -> MResult<Option<u64>> {
|
||||
match self.updates.last_update_id(reader)? {
|
||||
Some((id, _)) => Ok(Some(id)),
|
||||
None => Ok(None),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn update_status<T: rkv::Readable>(
|
||||
&self,
|
||||
reader: &T,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue