diff options
author | dan <dan@noemail.net> | 2020-05-06 21:24:29 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2020-05-06 21:24:29 +0000 |
commit | bc9fc18e4576e3efe9db1c1bb0e2d6a7943e855f (patch) | |
tree | b955c5c01b5cb167808f7dbbd8c73fc0e0032507 /src/wal.c | |
parent | 783e159e48979c551c204cbfe9c8f7dd4550d5e4 (diff) | |
download | sqlite-bc9fc18e4576e3efe9db1c1bb0e2d6a7943e855f.tar.gz sqlite-bc9fc18e4576e3efe9db1c1bb0e2d6a7943e855f.zip |
Fix an assert() failure that could follow an IO error.
FossilOrigin-Name: e89c864299024cdce395a15c19b000b976142b9eed267901a288adaa695f9e65
Diffstat (limited to 'src/wal.c')
-rw-r--r-- | src/wal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2945,8 +2945,8 @@ int sqlite3WalBeginReadTransaction(Wal *pWal, int *pChanged){ ** read-lock. */ void sqlite3WalEndReadTransaction(Wal *pWal){ + sqlite3WalEndWriteTransaction(pWal); if( pWal->readLock>=0 ){ - sqlite3WalEndWriteTransaction(pWal); walUnlockShared(pWal, WAL_READ_LOCK(pWal->readLock)); pWal->readLock = -1; } |