Some more locking questions...

When sqlite3OsLock() takes out the PENDING lock, it switches between RDLOCK and WRLOCK depending on the locktype requested.

However, it doesn't appear that any subsequent code checks for RDLOCK vs.WRLOCK on the PENDING BYTE. Actually, it appears that the only GETLK test is against the RESERVED byte. Where is PENDING ever tested for on the actual file?



Reply via email to