1
0
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:
drh
2019-10-05 15:28:24 +00:00
parent 31f69626df
commit 4d29448114
3 changed files with 9 additions and 8 deletions

View File

@@ -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) );