diff options
author | danielk1977 <danielk1977@noemail.net> | 2005-12-30 16:31:53 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2005-12-30 16:31:53 +0000 |
commit | 5118b918d83e1815b9c2327afde7aa37dba268c0 (patch) | |
tree | 5b2ac38b154b5bec1b338f5dea1c3b4cbdae8b21 /src | |
parent | aef0bf64299f8ed3bfd53880f6ac7327d650b9fa (diff) | |
download | sqlite-5118b918d83e1815b9c2327afde7aa37dba268c0.tar.gz sqlite-5118b918d83e1815b9c2327afde7aa37dba268c0.zip |
Repair typo in previous commit. (CVS 2849)
FossilOrigin-Name: a4aa0911bccd0627cd6d926c5bdd2a4f4b8f6cc5
Diffstat (limited to 'src')
-rw-r--r-- | src/btree.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/btree.c b/src/btree.c index e3febe981..7e5314b58 100644 --- a/src/btree.c +++ b/src/btree.c @@ -9,7 +9,7 @@ ** May you share freely, never taking more than you give. ** ************************************************************************* -** $Id: btree.c,v 1.277 2005/12/30 16:28:02 danielk1977 Exp $ +** $Id: btree.c,v 1.278 2005/12/30 16:31:54 danielk1977 Exp $ ** ** This file implements a external (disk-based) database using BTrees. ** For a detailed discussion of BTrees, refer to @@ -531,7 +531,9 @@ static int lockTable(Btree *p, Pgno iTable, u8 eLock){ ** and a read-lock requested, we don't incorrectly downgrade the lock. */ assert( WRITE_LOCK>READ_LOCK ); - pLock->eLock = MAX(pLock->eLock, eLock); + if( eLock>pLock->eLock ){ + pLock->eLock = eLock; + } return SQLITE_OK; } |