mirror of
https://github.com/google/leveldb.git
synced 2026-08-18 10:33:27 +08:00
remove unnessary status judge
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
if (s.ok()) {
|
||||
// We've successfully read the footer and the index block: we're
|
||||
|
||||
Reference in New Issue
Block a user