Bitcointalk · Running on a port other than 8333

中本聪,2010 年 9 月 12 日

SN-1691 已核对来源,附原文与上下文。

阅读语言
中文译文

另外,Bitcoin 是不是以独占方式打开 BerkeleyDB,从而不需要文件锁?不是——我自己测过了。

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

DB_PRIVATE 是两头不讨好的东西。它并不独占,但一旦另一个进程试图同时访问,它就会把事情搞砸。

我在 rev 153 里去掉了 DB_PRIVATE 标志。

ORIGINAL · 英文原文
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.
上下文
← 上一条 SN-1691 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-1691