征求意见:移除 DB_PRIVATE 标志

中本聪SN-2605

在 rev 153 里试着去掉了 DB_PRIVATE。我们得留意有什么不同。

Trying it without the DB_PRIVATE flag in rev 153. We need to keep an eye on what's different.

至少在 Windows 上,它会创建 __db.001 到 __db.006 六个文件,大小从 24K 到 4MB。退出时不删除它们,就那么留在原地。

On Windows at least, it creates six __db.001 - __db.006 files with sizes from 24K to 4MB. It doesn't delete them on exit, it just leaves them behind.

文档说它使用内存映射文件。我猜它们与数据库文件有同样的文件权限,所以同样的用户访问限制也适用。

The docs say it uses memory mapped files. I assume they have the same file permissions as the database files, so the same user access restrictions apply.

Windows 私有局域网下载 78500 个区块的测试:

Tests on Windows private LAN download of 78500 blocks:

用 DB_PRIVATE 20 分 51 秒

with DB_PRIVATE 20 minutes 51 seconds

不用 DB_PRIVATE 20 分 51 秒

without DB_PRIVATE 20 minutes 51 seconds

我没料到两者会完全一样。

I wasn't expecting them to come out exactly the same.

上下文
译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:e171b213b105。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

RFC: remove DB_PRIVATE flag

Bitcointalk · 原始链接 ↗ 记录编号 SN-2605

阅读字号

选择适合你的字号,之后阅读会继续使用。