summaryrefslogtreecommitdiff
path: root/table
diff options
context:
space:
mode:
authorVictor Costan <costan@google.com>2020-05-04 22:47:40 +0000
committerVictor Costan <costan@google.com>2020-05-04 22:47:40 +0000
commit5bd5f0f67a5eb0ed74c16b3ae847ec4e5bc3e412 (patch)
tree7c7d3bd2ab8126b55973371d83353300abbbb12b /table
parent23b6337f69a39d16570f8a66db69b55535d59a51 (diff)
parent10bc0f2595b8672c0c1756f22051ec420036fdf2 (diff)
downloadleveldb-5bd5f0f67a5eb0ed74c16b3ae847ec4e5bc3e412.tar.gz
Merge pull request #798 from lntotk:master
PiperOrigin-RevId: 309738404
Diffstat (limited to 'table')
-rw-r--r--table/table.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/table/table.cc b/table/table.cc
index b07bc88..29e835f 100644
--- a/table/table.cc
+++ b/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