1
0
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:
drh
2010-07-02 01:18:12 +00:00
parent 32f2964390
commit b2961b00f3
3 changed files with 11 additions and 11 deletions

View File

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