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

Do not fail a checkpoint just because active readers prevent backfill.

FossilOrigin-Name: 9aa4243e0cedcc9204994d04af1b2b7a80c048bd
This commit is contained in:
drh
2010-05-31 12:30:52 +00:00
parent c74c333408
commit 34116eaf6a
4 changed files with 21 additions and 26 deletions

View File

@@ -1445,6 +1445,11 @@ static int walCheckpoint(
/* Release the reader lock held while backfilling */
walUnlockExclusive(pWal, WAL_READ_LOCK(0), 1);
}else{
/* Reset the return code so as not to report a checkpoint failure
** just because active readers prevent any backfill.
*/
rc = SQLITE_OK;
}
walIteratorFree(pIter);