从
SQLite FAQ:
Can multiple applications or multiple instances of the same application access a single database file at the same time?
…
sqlite uses reader/writer locks to control access to the database. … But use caution: this locking mechanism might not work correctly if the database file is kept on an NFS filesystem. This is because fcntl() file locking is broken on many NFS implementations. You should avoid putting sqlite database files on NFS if multiple processes might try to access the file at the same time. …
是否有一个简单的测试来查看fcntl()锁定是否适用于我的NFS客户端和服务器的组合?
解决方法
我在bullopensource联系了Vincent,后者已不复存在.他在这里移动了代码:
https://sourceforge.net/projects/locktests/ 为我工作.请享用.