1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Reorder two conditions to make coverage testing easier.

FossilOrigin-Name: 793ba4e996426522eeaa86589a9e974fa1fc1522
This commit is contained in:
drh
2013-04-02 01:45:10 +00:00
parent 092d993cb7
commit 6d81449fc6
3 changed files with 8 additions and 8 deletions

View File

@@ -5128,7 +5128,7 @@ int sqlite3PagerSharedLock(Pager *pPager){
** nothing to rollback, so this routine is a no-op.
*/
static void pagerUnlockIfUnused(Pager *pPager){
if( (sqlite3PcacheRefCount(pPager->pPCache)==0) && pPager->nMmapOut==0 ){
if( pPager->nMmapOut==0 && (sqlite3PcacheRefCount(pPager->pPCache)==0) ){
pagerUnlockAndRollback(pPager);
}
}