Re: [sqlite] Race condition in testThreadLockingBehavior?

2005-03-03 Thread Christopher R. Palmer
D. Richard Hipp wrote: On Thu, 2005-03-03 at 07:30 -0500, Christopher R. Palmer wrote: It looks to me like this test assumes that no other process currently has a lock on this file. If any other process has any lock on this file, I believe one or both of the locking calls will fail which will

Re: [sqlite] Race condition in testThreadLockingBehavior?

2005-03-03 Thread D. Richard Hipp
On Thu, 2005-03-03 at 07:30 -0500, Christopher R. Palmer wrote: > It looks to me like this test assumes that no other process currently has a > lock on this file. If any other process has any lock on this file, I > believe one or both of the locking calls will fail which will trick sqlite >

[sqlite] Race condition in testThreadLockingBehavior?

2005-03-03 Thread Christopher R. Palmer
I am using version 3.0.8 of sqlite. In the course of trying to track down a strange error in my application where I very infrequently get a database is locked error (even though my busy timeout is set to some insanely large number, like a billion seconds), I was looking through the code is