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

如何测试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.1tg.com.cn/html/server/linux/2021/0524/4699.html

dawei作者

【声明】:糖果站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。
上一篇
下一篇

为您推荐

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息
返回顶部

【免责声明】本站内容转载自互联网,其发布内容言论不代表本站观点,如果其链接、内容的侵犯您的权益,烦请提交相关链接至邮箱xwei067@foxmail.com我们将及时予以处理。

Copygight © 2013-2023 https://www.1tg.com.cn All Rights Reserved.糖果站长网

站长:xwei067#foxmail.com(请把#换成@)