mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
Fix nested DB rollback behavior
This commit is contained in:
parent
038d403d46
commit
c507e02d58
1 changed files with 2 additions and 1 deletions
|
|
@ -320,8 +320,9 @@ Zotero.DB = new function(){
|
|||
var db = _getDBConnection();
|
||||
|
||||
if (_transactionNestingLevel){
|
||||
Zotero.debug('Flagging nested transaction for rollback', 5);
|
||||
_transactionNestingLevel--;
|
||||
_transactionRollback = true;
|
||||
Zotero.debug('Flagging nested transaction for rollback', 5);
|
||||
}
|
||||
else {
|
||||
Zotero.debug('Rolling back transaction', 5);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue