Skip to content

回复:在 8333 以外的端口上运行 ​

原始发布页

打开来源页面
查看 1 个交叉存档

引用 lachesis 于 2010 年 8 月 10 日 03:24:55 PM 的发言

~另外,比特币是否以独占方式打开 BerkeleyDB,从而不再需要文件锁?~并不是——我自己做了测试。

有没有办法以独占方式打开 BerkeleyDB?

DB_PRIVATE 集两边的缺点于一身。DB_PRIVATE 并非独占,但如果另一个进程试图同时访问,它确实会让数据库出问题。

我已经在 rev 153 中去掉了 DB_PRIVATE 标志。

英文原文 ​

展开英文原文

Quote from: lachesis on August 10, 2010, 03:24:55 PM

~Also, does Bitcoin open the BerkeleyDB as exclusive, precluding the need for a file lock?~It does not -- did my own tests.

Is there a way to open BerkeleyDB exclusive?

DB_PRIVATE is the worst of both worlds. DB_PRIVATE is not exclusive, but it does make it get screwed up if another process tries to access it at the same time.

I've dropped the DB_PRIVATE flag in rev 153.

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。