|
|
@ -1158,8 +1158,7 @@ Status BlockBasedTable::ReadMetaBlock(Rep* rep, |
|
|
|
rep->footer.metaindex_handle(), &meta, rep->ioptions, |
|
|
|
rep->footer.metaindex_handle(), &meta, rep->ioptions, |
|
|
|
true /* decompress */, Slice() /*compression dict*/, |
|
|
|
true /* decompress */, Slice() /*compression dict*/, |
|
|
|
rep->persistent_cache_options, kDisableGlobalSequenceNumber, |
|
|
|
rep->persistent_cache_options, kDisableGlobalSequenceNumber, |
|
|
|
0 /* read_amp_bytes_per_bit */, |
|
|
|
0 /* read_amp_bytes_per_bit */, GetCacheAllocator(rep->table_options)); |
|
|
|
GetCacheAllocator(rep->table_options)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!s.ok()) { |
|
|
|
if (!s.ok()) { |
|
|
|
ROCKS_LOG_ERROR(rep->ioptions.info_log, |
|
|
|
ROCKS_LOG_ERROR(rep->ioptions.info_log, |
|
|
@ -1712,8 +1711,7 @@ TBlockIter* BlockBasedTable::NewDataBlockIterator( |
|
|
|
compression_dict, rep->persistent_cache_options, |
|
|
|
compression_dict, rep->persistent_cache_options, |
|
|
|
is_index ? kDisableGlobalSequenceNumber : rep->global_seqno, |
|
|
|
is_index ? kDisableGlobalSequenceNumber : rep->global_seqno, |
|
|
|
rep->table_options.read_amp_bytes_per_bit, |
|
|
|
rep->table_options.read_amp_bytes_per_bit, |
|
|
|
GetCacheAllocator(rep->table_options), |
|
|
|
GetCacheAllocator(rep->table_options), rep->immortal_table); |
|
|
|
rep->immortal_table); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (s.ok()) { |
|
|
|
if (s.ok()) { |
|
|
|
block.value = block_value.release(); |
|
|
|
block.value = block_value.release(); |
|
|
@ -1819,8 +1817,7 @@ Status BlockBasedTable::MaybeLoadDataBlockToCache( |
|
|
|
compression_dict, rep->persistent_cache_options, |
|
|
|
compression_dict, rep->persistent_cache_options, |
|
|
|
is_index ? kDisableGlobalSequenceNumber : rep->global_seqno, |
|
|
|
is_index ? kDisableGlobalSequenceNumber : rep->global_seqno, |
|
|
|
rep->table_options.read_amp_bytes_per_bit, |
|
|
|
rep->table_options.read_amp_bytes_per_bit, |
|
|
|
GetCacheAllocator(rep->table_options), |
|
|
|
GetCacheAllocator(rep->table_options), rep->immortal_table); |
|
|
|
rep->immortal_table); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (s.ok()) { |
|
|
|
if (s.ok()) { |
|
|
@ -2544,8 +2541,7 @@ Status BlockBasedTable::VerifyChecksumInBlocks( |
|
|
|
rep_->file.get(), nullptr /* prefetch buffer */, rep_->footer, |
|
|
|
rep_->file.get(), nullptr /* prefetch buffer */, rep_->footer, |
|
|
|
ReadOptions(), handle, &contents, rep_->ioptions, |
|
|
|
ReadOptions(), handle, &contents, rep_->ioptions, |
|
|
|
false /* decompress */, dummy_comp_dict /*compression dict*/, |
|
|
|
false /* decompress */, dummy_comp_dict /*compression dict*/, |
|
|
|
rep_->persistent_cache_options, |
|
|
|
rep_->persistent_cache_options, GetCacheAllocator(rep_->table_options)); |
|
|
|
GetCacheAllocator(rep_->table_options)); |
|
|
|
|
|
|
|
s = block_fetcher.ReadBlockContents(); |
|
|
|
s = block_fetcher.ReadBlockContents(); |
|
|
|
if (!s.ok()) { |
|
|
|
if (!s.ok()) { |
|
|
|
break; |
|
|
|
break; |
|
|
@ -2571,8 +2567,7 @@ Status BlockBasedTable::VerifyChecksumInBlocks( |
|
|
|
rep_->file.get(), nullptr /* prefetch buffer */, rep_->footer, |
|
|
|
rep_->file.get(), nullptr /* prefetch buffer */, rep_->footer, |
|
|
|
ReadOptions(), handle, &contents, rep_->ioptions, |
|
|
|
ReadOptions(), handle, &contents, rep_->ioptions, |
|
|
|
false /* decompress */, dummy_comp_dict /*compression dict*/, |
|
|
|
false /* decompress */, dummy_comp_dict /*compression dict*/, |
|
|
|
rep_->persistent_cache_options, |
|
|
|
rep_->persistent_cache_options, GetCacheAllocator(rep_->table_options)); |
|
|
|
GetCacheAllocator(rep_->table_options)); |
|
|
|
|
|
|
|
s = block_fetcher.ReadBlockContents(); |
|
|
|
s = block_fetcher.ReadBlockContents(); |
|
|
|
if (!s.ok()) { |
|
|
|
if (!s.ok()) { |
|
|
|
break; |
|
|
|
break; |
|
|
|