recalculate maxEntityChangeId after rollbacked transaction

This commit is contained in:
zadam
2023-01-24 09:35:00 +01:00
parent 2e9dbda077
commit a888f9aa04
3 changed files with 12 additions and 4 deletions

View File

@@ -256,6 +256,9 @@ function transactional(func) {
require('../becca/becca_loader').load();
}
// the maxEntityChangeId has been incremented during failed transaction, need to recalculate
require('./entity_changes').recalculateMaxEntityChangeId();
throw e;
}
}