aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-07-02 01:18:12 +0000
committerdrh <drh@noemail.net>2010-07-02 01:18:12 +0000
commitb2961b00f37e46289fb0cb4d742141513a4ee5ec (patch)
tree3af9532fc68b7a2a379547c1a432381d6329f080 /src
parent32f29643907cf278c627fc5df1b884b6d524694d (diff)
downloadsqlite-b2961b00f37e46289fb0cb4d742141513a4ee5ec.tar.gz
sqlite-b2961b00f37e46289fb0cb4d742141513a4ee5ec.zip
Add a NEVER to sqlite3PagerCommitPhaseTwo() because it is now no longer
possible to invoke that function without holding a RESERVED lock. FossilOrigin-Name: 6ae7617298c70f8e03dd0ed73b8153d4871fb023
Diffstat (limited to 'src')
-rw-r--r--src/pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pager.c b/src/pager.c
index f7fcd6172..b97c6baf5 100644
--- a/src/pager.c
+++ b/src/pager.c
@@ -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