1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Repair typo in previous commit. (CVS 2849)

FossilOrigin-Name: a4aa0911bccd0627cd6d926c5bdd2a4f4b8f6cc5
This commit is contained in:
danielk1977
2005-12-30 16:31:53 +00:00
parent aef0bf6429
commit 5118b918d8
3 changed files with 11 additions and 9 deletions

View File

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