aboutsummaryrefslogtreecommitdiff
path: root/src/btree.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2020-05-07 14:26:40 +0000
committerdan <dan@noemail.net>2020-05-07 14:26:40 +0000
commit11a8182e5c6868a275531315c71f167a410ea86c (patch)
tree3c5a78b71ac03595f053039c91ef9ed48e477bb2 /src/btree.c
parent4cbe5d3588f671f96e917dab6c90d1e80707770a (diff)
downloadsqlite-11a8182e5c6868a275531315c71f167a410ea86c.tar.gz
sqlite-11a8182e5c6868a275531315c71f167a410ea86c.zip
Fix an error that could occur if the first transaction executed by a connection configured to use blocking locks is a write-transaction for which the WRITER lock cannot be obtained.
FossilOrigin-Name: 49e4dc72f7a4b28e4b49d7b91030bc986aea3ff44dac38cb6e68305800cd1de5
Diffstat (limited to 'src/btree.c')
-rw-r--r--src/btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c
index 3fe0e1c3c..f269b3dee 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -3434,8 +3434,8 @@ int sqlite3BtreeBeginTrans(Btree *p, int wrflag, int *pSchemaVersion){
pBt->btsFlags &= ~BTS_INITIALLY_EMPTY;
if( pBt->nPage==0 ) pBt->btsFlags |= BTS_INITIALLY_EMPTY;
- sqlite3PagerWalDb(pPager, p->db);
do {
+ sqlite3PagerWalDb(pPager, p->db);
#ifdef SQLITE_ENABLE_SETLK_TIMEOUT
/* If transitioning from no transaction directly to a write transaction,