Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | If the checkpoint fails to obtain an exclusive lock on one of the read-lock bytes, do not consider this an error. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | wal-incr-ckpt |
Files: | files | file ages | folders |
SHA1: |
9e95e35728cf69a0ae50e774d7f6c71a |
User & Date: | dan 2010-06-01 10:44:29.000 |
Context
2010-06-01
| ||
11:08 | Do not hold the shared-memory mutex in os_unix.c if returning NULL. (check-in: 9622dd468c user: dan tags: wal-incr-ckpt) | |
10:44 | If the checkpoint fails to obtain an exclusive lock on one of the read-lock bytes, do not consider this an error. (check-in: 9e95e35728 user: dan tags: wal-incr-ckpt) | |
07:51 | Fixes to the test cases in wal2.test. (check-in: cd5fbcbce8 user: dan tags: wal-incr-ckpt) | |
Changes
Changes to src/wal.c.
︙ | ︙ | |||
1420 1421 1422 1423 1424 1425 1426 | pHdr = (volatile WalIndexHdr*)pWal->pWiData; pInfo = (volatile WalCkptInfo*)&pHdr[2]; assert( pInfo==walCkptInfo(pWal) ); for(i=1; i<WAL_NREADER; i++){ u32 y = pInfo->aReadMark[i]; if( y>0 && (mxSafeFrame==0 || mxSafeFrame>=y) ){ if( y<=pWal->hdr.mxFrame | | | 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 | pHdr = (volatile WalIndexHdr*)pWal->pWiData; pInfo = (volatile WalCkptInfo*)&pHdr[2]; assert( pInfo==walCkptInfo(pWal) ); for(i=1; i<WAL_NREADER; i++){ u32 y = pInfo->aReadMark[i]; if( y>0 && (mxSafeFrame==0 || mxSafeFrame>=y) ){ if( y<=pWal->hdr.mxFrame && walLockExclusive(pWal, WAL_READ_LOCK(i), 1)==SQLITE_OK ){ pInfo->aReadMark[i] = 0; walUnlockExclusive(pWal, WAL_READ_LOCK(i), 1); }else{ mxSafeFrame = y-1; } } |
︙ | ︙ |