mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Very small optimization in the bytecode engine.
FossilOrigin-Name: 46002511e52518bae14f210157f231c814c77c9e
This commit is contained in:
10
src/vdbe.c
10
src/vdbe.c
@@ -3176,12 +3176,12 @@ case OP_Transaction: {
|
||||
rc = sqlite3BtreeBeginTrans(pBt, pOp->p2);
|
||||
testcase( rc==SQLITE_BUSY_SNAPSHOT );
|
||||
testcase( rc==SQLITE_BUSY_RECOVERY );
|
||||
if( (rc&0xff)==SQLITE_BUSY ){
|
||||
p->pc = (int)(pOp - aOp);
|
||||
p->rc = rc;
|
||||
goto vdbe_return;
|
||||
}
|
||||
if( rc!=SQLITE_OK ){
|
||||
if( (rc&0xff)==SQLITE_BUSY ){
|
||||
p->pc = (int)(pOp - aOp);
|
||||
p->rc = rc;
|
||||
goto vdbe_return;
|
||||
}
|
||||
goto abort_due_to_error;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user