diff options
author | drh <drh@noemail.net> | 2010-05-31 12:30:52 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-05-31 12:30:52 +0000 |
commit | 34116eaf6aff20059a80d158412f0cd010700b44 (patch) | |
tree | 81b16dd735b57559f106e3635581a66a3e2dd6b1 /src | |
parent | c74c3334089e6e20a87031674a70c04de7550ed9 (diff) | |
download | sqlite-34116eaf6aff20059a80d158412f0cd010700b44.tar.gz sqlite-34116eaf6aff20059a80d158412f0cd010700b44.zip |
Do not fail a checkpoint just because active readers prevent backfill.
FossilOrigin-Name: 9aa4243e0cedcc9204994d04af1b2b7a80c048bd
Diffstat (limited to 'src')
-rw-r--r-- | src/wal.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |