diff options
author | drh <drh@noemail.net> | 2010-08-16 20:02:09 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-08-16 20:02:09 +0000 |
commit | 919fc66ea736f5c0842e6bf6c8096c2f14886fb9 (patch) | |
tree | 96565f5141e554e16c92f545641c0e0473c1f206 /src | |
parent | 4bcc4988f1543d2378a320d78a1be9605767934a (diff) | |
download | sqlite-919fc66ea736f5c0842e6bf6c8096c2f14886fb9.tar.gz sqlite-919fc66ea736f5c0842e6bf6c8096c2f14886fb9.zip |
Remove an superfluous branch from pager.c.
FossilOrigin-Name: 4271a95c8236bda4a4f8c02bf3a3560de1d00402
Diffstat (limited to 'src')
-rw-r--r-- | src/pager.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pager.c b/src/pager.c index 9935e2355..2137f0a9c 100644 --- a/src/pager.c +++ b/src/pager.c @@ -6567,9 +6567,8 @@ int sqlite3PagerOpenWal( if( !pPager->tempFile && !pPager->pWal ){ if( !sqlite3PagerWalSupported(pPager) ) return SQLITE_CANTOPEN; - if( isOpen(pPager->jfd) ){ - sqlite3OsClose(pPager->jfd); - } + /* Close any rollback journal previously open */ + sqlite3OsClose(pPager->jfd); /* Open the connection to the log file. If this operation fails, ** (e.g. due to malloc() failure), unlock the database file and |