/ Check-in [b9d1fb5d44]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a harmless compiler warning in os_unix.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b9d1fb5d44e0a6ffc00ee987f178e448d7516e579beecdeeb387e69aef588921
User & Date: drh 2018-09-06 19:36:29
Context
2018-09-06
20:33
In all.test, do not attempt to run the RBU tests in non-RBU builds. check-in: 10c3e5a031 user: dan tags: trunk
19:36
Fix a harmless compiler warning in os_unix.c. check-in: b9d1fb5d44 user: drh tags: trunk
18:56
Fix a problem with ALTER TABLE when there are views or triggers in the schema that contain "<expr> IS NULL" expressions. check-in: 91aab32e71 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

  3178   3178     assert( id!=0 );
  3179   3179     afpUnlock(id, NO_LOCK);
  3180   3180     assert( unixFileMutexNotheld(pFile) );
  3181   3181     unixEnterMutex();
  3182   3182     if( pFile->pInode ){
  3183   3183       unixInodeInfo *pInode = pFile->pInode;
  3184   3184       sqlite3_mutex_enter(pInode->pLockMutex);
  3185         -    if( pFile->pInode->nLock ){
         3185  +    if( pInode->nLock ){
  3186   3186         /* If there are outstanding locks, do not actually close the file just
  3187   3187         ** yet because that would clear those locks.  Instead, add the file
  3188   3188         ** descriptor to pInode->aPending.  It will be automatically closed when
  3189   3189         ** the last lock is cleared.
  3190   3190         */
  3191   3191         setPendingFd(pFile);
  3192   3192       }