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
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

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) => {