mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-28 01:01:00 +00:00
Introduce some new routes to handle live indexing
This commit is contained in:
@ -148,7 +148,7 @@ impl<M: 'static> UpdateStore<M> {
|
||||
}
|
||||
|
||||
/// Execute the user defined function with both meta-store iterators, the first
|
||||
/// iterator is the *pending* meta one and the secind is the *processed* meta one.
|
||||
/// iterator is the *processed* meta one and the secind is the *pending* meta one.
|
||||
pub fn iter_metas<F, T>(&self, mut f: F) -> heed::Result<T>
|
||||
where
|
||||
M: for<'a> Deserialize<'a>,
|
||||
@ -160,11 +160,11 @@ impl<M: 'static> UpdateStore<M> {
|
||||
let rtxn = self.env.read_txn()?;
|
||||
|
||||
// We get both the pending and processed meta iterators.
|
||||
let pending_iter = self.pending_meta.iter(&rtxn)?;
|
||||
let processed_iter = self.processed_meta.iter(&rtxn)?;
|
||||
let pending_iter = self.pending_meta.iter(&rtxn)?;
|
||||
|
||||
// We execute the user defined function with both iterators.
|
||||
(f)(pending_iter, processed_iter)
|
||||
(f)(processed_iter, pending_iter)
|
||||
}
|
||||
|
||||
/// Returns the update associated meta or `None` if the update deosn't exist.
|
||||
|
Reference in New Issue
Block a user