Skip to content

Commit

Permalink
do not return early in failure to lock wal
Browse files Browse the repository at this point in the history
  • Loading branch information
pereman2 committed Feb 26, 2025
1 parent 4cfba7e commit 98c29c0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libsql-sqlite3/src/wal.c
Original file line number Diff line number Diff line change
Expand Up @@ -4129,12 +4129,9 @@ static int sqlite3WalCheckpoint(
*/
if( eMode!=SQLITE_CHECKPOINT_PASSIVE ){
rc = walBusyLock(pWal, xBusy2, pBusyArg, WAL_WRITE_LOCK, 1);
if( rc!=SQLITE_OK ){
walUnlockExclusive(pWal, WAL_CKPT_LOCK, 1);
pWal->ckptLock = 0;
return rc;
if( rc==SQLITE_OK ){
pWal->writeLock = 1;
}
pWal->writeLock = 1;
}
}

Expand Down

0 comments on commit 98c29c0

Please sign in to comment.