1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Add mutexes to fix a race condition in wal.c. This isn't a very good fix.

FossilOrigin-Name: 3d159939cc2beb18c4ca0c8e9a99a75d4107e6e4
This commit is contained in:
dan
2010-04-26 10:40:52 +00:00
parent c438efd68a
commit cd11fb28c3
6 changed files with 49 additions and 31 deletions

View File

@ -787,8 +787,9 @@ do_test wal-13.5 {
execsql { SELECT count(*) FROM t2 }
} [expr int(pow(2, 15))]
do_test wal-13.6 {
file size test.db-wal-summary
} [expr 192*1024]
set sz [file size test.db-wal-summary]
expr {$sz<=(3*64*1024) && $sz>(2*64*1024)}
} {1}
finish_test