]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add a busy-handler to a test case in walthread.test to prevent errors.
authordan <dan@noemail.net>
Tue, 25 May 2010 15:23:51 +0000 (15:23 +0000)
committerdan <dan@noemail.net>
Tue, 25 May 2010 15:23:51 +0000 (15:23 +0000)
FossilOrigin-Name: d3d348aa975c58c37088eb2830081880896b85e7

manifest
manifest.uuid
test/walthread.test

index 032a46c19231c1cacf75f49dc651e5503661b36b..4d39854c5adde1d9c9f6dedcc4dcaa3cae2f5e8f 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Modify\swalcrash2.test\sso\sthat\sit\sworks\swith\sDEFAULT_AUTOVACUUM=1.
-D 2010-05-25T13:49:10
+C Add\sa\sbusy-handler\sto\sa\stest\scase\sin\swalthread.test\sto\sprevent\serrors.
+D 2010-05-25T15:23:52
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in a5cad1f8f3e021356bfcc6c77dc16f6f1952bbc3
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -771,7 +771,7 @@ F test/walfault.test f71d4c9a13d4e27086aef55f1e0e94734ffa2f6a
 F test/walhook.test 67e675127f4acb72f061a12667ce6e5460b06b78
 F test/walmode.test 6ca9d710cc9f6545b913abcded6d6b0b15641048
 F test/walslow.test d21625e2e99e11c032ce949e8a94661576548933
-F test/walthread.test 1a8c55cd9e3272ba0caa028d8f0ead04989a3378
+F test/walthread.test 91ccfe5e04192d2c3fc252d82b28e110a81d0d2e
 F test/where.test de337a3fe0a459ec7c93db16a519657a90552330
 F test/where2.test 43d4becaf5a5df854e6c21d624a1cb84c6904554
 F test/where3.test aa44a9b29e8c9f3d7bb94a3bb3a95b31627d520d
@@ -815,7 +815,7 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
-P 40030c0739f821ea8ee188c28c579507f10448bc
-R 0090eb2cf7ec1d81115b9d5cbc667255
+P 77438882dd53ac4d98b24e2846c87a2418b4e3d8
+R 23aa9622ccc545edb898221f105012e2
 U dan
-Z 59c7b20961fbbfcd93c91e8e8f8f9d64
+Z c7d8c33ddd8471f219d4b7cf868e8343
index 463317fc121fae221c8d9efd6af98062df2ac58e..aac31840c5395c7404f46b547421fd03acf4aee1 100644 (file)
@@ -1 +1 @@
-77438882dd53ac4d98b24e2846c87a2418b4e3d8
\ No newline at end of file
+d3d348aa975c58c37088eb2830081880896b85e7
\ No newline at end of file
index 13b1b4b35cc5a2d429f1d8ff7dc11d41e9a529b8..1527cadb1f4f24f42959bce010b7b74207c641d3 100644 (file)
@@ -220,7 +220,6 @@ proc do_thread_test2 {args} {
   uplevel [lreplace $args 0 0 do_thread_test "$name-processes" -processes 1]
 }
 
-
 #--------------------------------------------------------------------------
 # Start 10 threads. Each thread performs both read and write 
 # transactions. Each read transaction consists of:
@@ -437,8 +436,14 @@ do_thread_test2 walthread-4 -seconds $seconds(walthread-4) -init {
 } -thread r 1 {
   # This connection only ever reads the database. Therefore the 
   # busy-handler is not required. Disable it to check that this is true.
-  db busy {}
-  while {[tt_continue]} integrity_check
+  #
+  # UPDATE: That is no longer entirely true - as we don't use a blocking
+  # lock to enter RECOVER state. Which means there is a small chance a
+  # reader can see an SQLITE_BUSY.
+  #
+  while {[tt_continue]} {
+    integrity_check
+  }
   set {} ok
 } -thread w 1 {