mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Add a NEVER to sqlite3PagerCommitPhaseTwo() because it is now no longer
possible to invoke that function without holding a RESERVED lock. FossilOrigin-Name: 6ae7617298c70f8e03dd0ed73b8153d4871fb023
This commit is contained in:
@@ -5302,7 +5302,7 @@ int sqlite3PagerCommitPhaseTwo(Pager *pPager){
|
||||
** fails - make it so that we never reach this point if we do not hold
|
||||
** all necessary locks.
|
||||
*/
|
||||
if( pPager->state<PAGER_RESERVED ) return SQLITE_ERROR;
|
||||
if( NEVER(pPager->state<PAGER_RESERVED) ) return SQLITE_ERROR;
|
||||
|
||||
/* An optimization. If the database was not actually modified during
|
||||
** this transaction, the pager is running in exclusive-mode and is
|
||||
|
Reference in New Issue
Block a user