Remoe unused BlockBasedTable::compaction_optimized_

Summary:
BlockBasedTable::compaction_optimized_ is never used but can cause TSAN warning. Remove it.
Closes https://github.com/facebook/rocksdb/pull/2324

Differential Revision: D5085533

Pulled By: siying

fbshipit-source-id: 2feefce6806d559dfb4ab2989aa3db36752fe25d
main
Siying Dong 7 years ago committed by Facebook Github Bot
parent f5ba131bf8
commit 9bbba4fec1
  1. 1
      table/block_based_table_reader.cc
  2. 5
      table/block_based_table_reader.h

@ -797,7 +797,6 @@ void BlockBasedTable::SetupForCompaction() {
default:
assert(false);
}
compaction_optimized_ = true;
}
std::shared_ptr<const TableProperties> BlockBasedTable::GetTableProperties()

@ -206,12 +206,9 @@ class BlockBasedTable : public TableReader {
struct CachableEntry;
struct Rep;
Rep* rep_;
explicit BlockBasedTable(Rep* rep)
: rep_(rep), compaction_optimized_(false) {}
explicit BlockBasedTable(Rep* rep) : rep_(rep) {}
private:
bool compaction_optimized_;
// input_iter: if it is not null, update this one and return it as Iterator
static InternalIterator* NewDataBlockIterator(Rep* rep, const ReadOptions& ro,
const Slice& index_value,

Loading…
Cancel
Save