]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Remove asserts on the existing of journal files in pager - asserts that
authordrh <drh@noemail.net>
Fri, 30 Mar 2007 17:18:50 +0000 (17:18 +0000)
committerdrh <drh@noemail.net>
Fri, 30 Mar 2007 17:18:50 +0000 (17:18 +0000)
are not valid for certain kinds of simulated I/O errors or for async I/O. (CVS 3769)

FossilOrigin-Name: f5fad52a97a16faddc2701ea0e05a301974eda1a

manifest
manifest.uuid
src/pager.c

index 425d8330eded0665202ba15c9fd76de10c3e0824..ab9ff392196e205913fc826febecb38200802b14 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Get\sthe\smemleak.test\sscript\sworking\sagain\safter\srecent\schanges.\s(CVS\s3768)
-D 2007-03-30T17:17:52
+C Remove\sasserts\son\sthe\sexisting\sof\sjournal\sfiles\sin\spager\s-\sasserts\sthat\nare\snot\svalid\sfor\scertain\skinds\sof\ssimulated\sI/O\serrors\sor\sfor\sasync\sI/O.\s(CVS\s3769)
+D 2007-03-30T17:18:51
 F Makefile.in 2f2c3bf69faf0ae7b8e8af4f94f1986849034530
 F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935
 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@@ -86,7 +86,7 @@ F src/os_unix.c 4291be23eec73d1ec04010ae702364b781b5f773
 F src/os_unix.h 5768d56d28240d3fe4537fac08cc85e4fb52279e
 F src/os_win.c c3a8403ea28bbb89d6507fa984c5919bd3fe7539
 F src/os_win.h 41a946bea10f61c158ce8645e7646b29d44f122b
-F src/pager.c ae0b1e1ae9b3f7fc725b6c92cf10f2a582006e44
+F src/pager.c 15118c2b519e4969e77d356b9d4ed6ca5839b196
 F src/pager.h e79a24cf200b8771366217f5bca414f5b7823f42
 F src/parse.y 207ab04273ae13aa4a729b96008d294d5f334ab3
 F src/pragma.c 3b992b5b2640d6ae25cef05aa6a42cd1d6c43234
@@ -447,7 +447,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9
 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
 F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
 F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513
-P eec7ab63beed875a3b16c3bf8d28ac4f296dfb4c
-R 7c4f002397ad2bb1c06d129d7feeb9c6
+P cd6ca078e3402f06836b6b510a4a431f576f7219
+R a1829a1a4c7480d97a0c0b316a97e2e2
 U drh
-Z 9b2c2a4a18f2bf41f94905f4fed8d942
+Z 8885ea3dc8b09d44dda50207da9f7451
index 3a74c5bca0de5826beec909abf9ba01711e99ede..9a07ff8012c17a6cd5fcd9315dbfdf8c9ee49045 100644 (file)
@@ -1 +1 @@
-cd6ca078e3402f06836b6b510a4a431f576f7219
\ No newline at end of file
+f5fad52a97a16faddc2701ea0e05a301974eda1a
\ No newline at end of file
index 927a5b5e580e5fd208ed509112eb7c088d6338b7..707ff7a8efd0fbd3d9dddf3169696188c2ef09ff 100644 (file)
@@ -18,7 +18,7 @@
 ** file simultaneously, or one process from reading the database while
 ** another is writing.
 **
-** @(#) $Id: pager.c,v 1.309 2007/03/30 16:01:55 drh Exp $
+** @(#) $Id: pager.c,v 1.310 2007/03/30 17:18:51 drh Exp $
 */
 #ifndef SQLITE_OMIT_DISKIO
 #include "sqliteInt.h"
@@ -956,9 +956,12 @@ static int pager_end_transaction(Pager *pPager){
       ** be in the file system. This pager still holds a RESERVED or greater
       ** lock on the database file, so there is no chance another process
       ** could create or remove a journal file.
+      **
+      ** These asserts are not valid for asynchronous I/O such as is found
+      ** in async.test
       */
-      assert( sqlite3OsFileExists(pPager->zJournal) || pPager->tempFile );
-      assert( !sqlite3OsFileExists(pPager->zJournal) || !pPager->tempFile );
+      /*assert( sqlite3OsFileExists(pPager->zJournal) || pPager->tempFile );*/
+      /*assert( !sqlite3OsFileExists(pPager->zJournal) || !pPager->tempFile );*/
       if( !pPager->tempFile ){
         rc = sqlite3OsDelete(pPager->zJournal);
       }