mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-27 20:41:58 +03:00
Bug fix in the unix locking code. (CVS 1574)
FossilOrigin-Name: dcad244f58453d23f2bcb749dcea077434bbd08c
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
# focus of this script is testing the ATTACH and DETACH commands
|
||||
# and related functionality.
|
||||
#
|
||||
# $Id: attach2.test,v 1.15 2004/06/09 21:01:12 drh Exp $
|
||||
# $Id: attach2.test,v 1.16 2004/06/12 02:17:15 drh Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@ -263,7 +263,6 @@ do_test attach2-4.9 {
|
||||
lock_status 4.9.1 db {main shared temp reserved file2 shared}
|
||||
lock_status 4.9.2 db2 {main reserved temp reserved file2 reserved}
|
||||
|
||||
set sqlite_os_trace 0
|
||||
btree_breakpoint
|
||||
do_test attach2-4.10 {
|
||||
# We cannot commit db2 while db is holding a read-lock
|
||||
@ -271,15 +270,17 @@ do_test attach2-4.10 {
|
||||
} {1 {database is locked}}
|
||||
|
||||
lock_status 4.10.1 db {main shared temp reserved file2 shared}
|
||||
lock_status 4.10.2 db2 {main reserved temp reserved file2 reserved}
|
||||
lock_status 4.10.2 db2 {main pending temp reserved file2 reserved}
|
||||
|
||||
set sqlite_os_trace 0
|
||||
btree_breakpoint
|
||||
do_test attach2-4.11 {
|
||||
# db is able to commit.
|
||||
catchsql {COMMIT}
|
||||
} {0 {}}
|
||||
|
||||
lock_status 4.11.1 db {main unlocked temp unlocked file2 unlocked}
|
||||
lock_status 4.11.2 db2 {main reserved temp reserved file2 reserved}
|
||||
lock_status 4.11.2 db2 {main pending temp reserved file2 reserved}
|
||||
|
||||
do_test attach2-4.12 {
|
||||
# Now we can commit db2
|
||||
|
Reference in New Issue
Block a user