Support aborting documents edition by function

This commit is contained in:
Clément Renault
2024-05-11 11:39:58 +02:00
parent 33fa17bf12
commit 2eae2015d7

View File

@ -236,6 +236,10 @@ where
};
for docid in documents {
if (self.should_abort)() {
return Err(Error::InternalError(InternalError::AbortedIndexation));
}
let (document, document_object, document_id) =
match self.index.documents.get(self.wtxn, &docid)? {
Some(obkv) => {