加入收藏 | 设为首页 | 会员中心 | 我要投稿 衡阳站长网 (https://www.0734zz.cn/)- 数据集成、设备管理、备份、数据加密、智能搜索!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

如何测试fcntl()锁是否可以与我的NFS设置一起使用?

发布时间:2021-05-24 02:57:24 所属栏目:Linux 来源:网络整理
导读:从 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

从 SQLite FAQ:

  1. 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/ 为我工作.请享用.

(编辑:衡阳站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读