remove unnessary status judge
This commit is contained in:
parent
201f52201f
commit
10bc0f2595
@ -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;
|
ReadOptions opt;
|
||||||
if (options.paranoid_checks) {
|
if (options.paranoid_checks) {
|
||||||
opt.verify_checksums = true;
|
opt.verify_checksums = true;
|
||||||
}
|
}
|
||||||
s = ReadBlock(file, opt, footer.index_handle(), &index_block_contents);
|
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…
Reference in New Issue
Block a user