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

Fix an assert() in os_unix.c that is not true when using RBU.

FossilOrigin-Name: 028ed8618af012b51104a06cc155b45d98bc4ff833d4431b9c38fd6851a74e82
This commit is contained in:
dan
2018-09-12 20:32:19 +00:00
parent 16b870d804
commit a86acc2132
3 changed files with 11 additions and 9 deletions

View File

@@ -4879,7 +4879,9 @@ static void unixShmBarrier(
){
UNUSED_PARAMETER(fd);
sqlite3MemoryBarrier(); /* compiler-defined memory barrier */
assert( unixFileMutexNotheld((unixFile*)fd) );
assert( fd->pMethods->xLock==nolockLock
|| unixFileMutexNotheld((unixFile*)fd)
);
unixEnterMutex(); /* Also mutex, for redundancy */
unixLeaveMutex();
}