mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Add tests for some lock-contention cases.
FossilOrigin-Name: f0fcb9c9a67e2bf7bbedbedbc27791b605a21dd1
This commit is contained in:
@@ -219,6 +219,7 @@ static void walChecksumBytes(u8 *aByte, int nByte, u32 *aCksum){
|
||||
static int walSetLock(Wal *pWal, int desiredStatus){
|
||||
int rc, got;
|
||||
if( pWal->lockState==desiredStatus ) return SQLITE_OK;
|
||||
got = pWal->lockState;
|
||||
rc = pWal->pVfs->xShmLock(pWal->pVfs, pWal->pWIndex, desiredStatus, &got);
|
||||
pWal->lockState = got;
|
||||
if( got==SQLITE_SHM_READ_FULL || got==SQLITE_SHM_READ ){
|
||||
|
Reference in New Issue
Block a user