mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Reorder two comparisons for a small performance gain in OP_Transaction.
FossilOrigin-Name: d7667f6560318272c8b35b478e29b0ed134105dfd119a2fd53ef0490442c60cc
This commit is contained in:
@@ -3456,7 +3456,8 @@ case OP_Transaction: {
|
||||
goto abort_due_to_error;
|
||||
}
|
||||
|
||||
if( pOp->p2 && p->usesStmtJournal
|
||||
if( p->usesStmtJournal
|
||||
&& pOp->p2
|
||||
&& (db->autoCommit==0 || db->nVdbeRead>1)
|
||||
){
|
||||
assert( sqlite3BtreeIsInTrans(pBt) );
|
||||
|
Reference in New Issue
Block a user