Browse Source

remove unnessary status judge

main
lntotk 4 years ago
parent
commit
10bc0f2595
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      table/table.cc

+ 4
- 6
table/table.cc View File

@ -54,13 +54,11 @@ Status Table::Open(const Options& options, RandomAccessFile* file,
// Read the index block // Read the index block
BlockContents index_block_contents; 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()) { if (s.ok()) {
// We've successfully read the footer and the index block: we're // We've successfully read the footer and the index block: we're

Loading…
Cancel
Save