aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wal.c b/src/wal.c
index 11ad7949a..428700588 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -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);