微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

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

原文地址:https://www.jb51.cc/linux/398127.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐