Check status when reading HashIndexPrefixesMetadataBlock

Summary:
This was missed in a refactor of `ReadBlockContents` (2f1a3a4).
Closes https://github.com/facebook/rocksdb/pull/3906

Differential Revision: D8172648

Pulled By: ajkr

fbshipit-source-id: 27e453b19795fea974bfed4721105be6f3a12090
This commit is contained in:
Nathan VanBenschoten 2018-05-25 17:35:36 -07:00 committed by Facebook Github Bot
parent 45434178ee
commit 8c3bf0801b

View File

@ -484,7 +484,7 @@ class HashIndexReader : public IndexReader {
file, prefetch_buffer, footer, ReadOptions(), prefixes_meta_handle, file, prefetch_buffer, footer, ReadOptions(), prefixes_meta_handle,
&prefixes_meta_contents, ioptions, true /* decompress */, &prefixes_meta_contents, ioptions, true /* decompress */,
dummy_comp_dict /*compression dict*/, cache_options); dummy_comp_dict /*compression dict*/, cache_options);
prefixes_meta_block_fetcher.ReadBlockContents(); s = prefixes_meta_block_fetcher.ReadBlockContents();
if (!s.ok()) { if (!s.ok()) {
// TODO: log error // TODO: log error
return Status::OK(); return Status::OK();