mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Do not commit transaction on failed updates
This commit is contained in:
parent
ed783b67ca
commit
6a691db7f8
2 changed files with 3 additions and 3 deletions
|
@ -202,7 +202,9 @@ impl Index {
|
|||
Ok(UpdateResult::DocumentDeletion { deleted })
|
||||
}
|
||||
};
|
||||
txn.commit()?;
|
||||
if result.is_ok() {
|
||||
txn.commit()?;
|
||||
}
|
||||
result
|
||||
})();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue