1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-25 20:58:26 +03:00

The uninitialized file descriptor from the unixFile structure is passed to sqlite3DetectLockingStyle in allocateUnixFile rather than the file descriptor passed in. This was causing the locking detection on NFS file systems to behave somewhat randomly and the result was locks were not respected and data loss could occur. (CVS 3508)

FossilOrigin-Name: b9dd16ef3df0785d8d0eea9a6f2ad580a7289834
This commit is contained in:
aswift
2006-11-11 01:31:58 +00:00
parent 1fe336f69c
commit 448aa6f71a
3 changed files with 9 additions and 9 deletions

View File

@@ -2450,7 +2450,7 @@ static int allocateUnixFile(
unixFile f;
int rc;
lockingStyle = sqlite3DetectLockingStyle(zFilename, f.h);
lockingStyle = sqlite3DetectLockingStyle(zFilename, h);
if ( lockingStyle == posixLockingStyle ) {
sqlite3OsEnterMutex();
rc = findLockInfo(h, &f.pLock, &f.pOpen);