浏览代码

Merge pull request #798 from lntotk:master

PiperOrigin-RevId: 309738404
main
Victor Costan 4 年前
父节点
当前提交
5bd5f0f67a
共有 1 个文件被更改,包括 4 次插入6 次删除
  1. +4
    -6
      table/table.cc

+ 4
- 6
table/table.cc 查看文件

@ -54,13 +54,11 @@ Status Table::Open(const Options& options, RandomAccessFile* file,
// Read the index block
BlockContents index_block_contents;
if (s.ok()) {
ReadOptions opt;
if (options.paranoid_checks) {
opt.verify_checksums = true;
}
s = ReadBlock(file, opt, footer.index_handle(), &index_block_contents);
ReadOptions opt;
if (options.paranoid_checks) {
opt.verify_checksums = true;
}
s = ReadBlock(file, opt, footer.index_handle(), &index_block_contents);
if (s.ok()) {
// We've successfully read the footer and the index block: we're

正在加载...
取消
保存