mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Actually execute the transform even if there are only documents to delete
This commit is contained in:
parent
3c15881818
commit
e78281785c
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ where
|
|||
pub fn execute(mut self) -> Result<DocumentAdditionResult> {
|
||||
puffin::profile_function!();
|
||||
|
||||
if self.added_documents == 0 {
|
||||
if self.added_documents == 0 && self.deleted_documents == 0 {
|
||||
let number_of_documents = self.index.number_of_documents(self.wtxn)?;
|
||||
return Ok(DocumentAdditionResult { indexed_documents: 0, number_of_documents });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue