1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Make sure the threadsOverrideEachOthersLocks variable is only referenced by

linux systems on a threadsafe compile.

FossilOrigin-Name: e9d064bd9318c2bc9248df948f71fd30f24525eb
This commit is contained in:
drh
2009-09-10 19:20:03 +00:00
parent abc6b89085
commit 08da4bb16e
3 changed files with 20 additions and 8 deletions

View File

@@ -925,7 +925,9 @@ static void releaseOpenCnt(struct unixOpenCnt *pOpen){
assert( pOpen->pNext->pPrev==pOpen );
pOpen->pNext->pPrev = pOpen->pPrev;
}
#if SQLITE_THREADSAFE && defined(__linux__)
assert( !pOpen->pUnused || threadsOverrideEachOthersLocks==0 );
#endif
/* If pOpen->pUnused is not null, then memory and file-descriptors
** are leaked.