mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Fix some problems in os_unix.c when compiled with ENABLE_LOCKING_STYLE on OSX. Also some minor issues with test scripts.
FossilOrigin-Name: 8088031bc949bd4efb5edf33bbd1bce5700fca56
This commit is contained in:
@@ -1594,7 +1594,7 @@ static int posixUnlock(sqlite3_file *id, int eFileLock, int handleNFSUnlock){
|
||||
lock.l_whence = SEEK_SET;
|
||||
lock.l_start = SHARED_FIRST;
|
||||
lock.l_len = divSize;
|
||||
if( unixFileLock(pFile,, &lock)==(-1) ){
|
||||
if( unixFileLock(pFile, &lock)==(-1) ){
|
||||
tErrno = errno;
|
||||
rc = sqliteErrorFromPosixError(tErrno, SQLITE_IOERR_UNLOCK);
|
||||
if( IS_LOCK_ERROR(rc) ){
|
||||
@@ -5747,7 +5747,9 @@ static int proxyCreateUnixFile(
|
||||
}
|
||||
memset(pNew, 0, sizeof(unixFile));
|
||||
pNew->openFlags = openFlags;
|
||||
memset(&dummyVfs, 0, sizeof(dummyVfs));
|
||||
dummyVfs.pAppData = (void*)&autolockIoFinder;
|
||||
dummyVfs.zName = "dummy";
|
||||
pUnused->fd = fd;
|
||||
pUnused->flags = openFlags;
|
||||
pNew->pUnused = pUnused;
|
||||
|
||||
Reference in New Issue
Block a user