Skip to content

Commit

Permalink
Merge pull request google#798 from lntotk:master
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 309738404
  • Loading branch information
pwnall committed May 4, 2020
2 parents 23b6337 + 10bc0f2 commit 5bd5f0f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions table/table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5bd5f0f

Please sign in to comment.