Clean up the dead code (#6946)
Summary: Remove the dead code in table test. Pull Request resolved: https://github.com/facebook/rocksdb/pull/6946 Test Plan: run table_test Reviewed By: riversand963 Differential Revision: D21913563 Pulled By: zhichao-cao fbshipit-source-id: c0aa9f3b95dfe87dd7fb2cd4823784f08cb3ddd3
This commit is contained in:
parent
23e446a157
commit
f941adef88
@ -3265,17 +3265,9 @@ TEST_P(BlockBasedTableTest, NoFileChecksum) {
|
|||||||
BlockBasedTableOptions table_options = GetBlockBasedTableOptions();
|
BlockBasedTableOptions table_options = GetBlockBasedTableOptions();
|
||||||
std::unique_ptr<InternalKeyComparator> comparator(
|
std::unique_ptr<InternalKeyComparator> comparator(
|
||||||
new InternalKeyComparator(BytewiseComparator()));
|
new InternalKeyComparator(BytewiseComparator()));
|
||||||
SequenceNumber largest_seqno = 0;
|
|
||||||
int level = 0;
|
int level = 0;
|
||||||
std::vector<std::unique_ptr<IntTblPropCollectorFactory>>
|
std::vector<std::unique_ptr<IntTblPropCollectorFactory>>
|
||||||
int_tbl_prop_collector_factories;
|
int_tbl_prop_collector_factories;
|
||||||
|
|
||||||
if (largest_seqno != 0) {
|
|
||||||
// Pretend that it's an external file written by SstFileWriter.
|
|
||||||
int_tbl_prop_collector_factories.emplace_back(
|
|
||||||
new SstFileWriterPropertiesCollectorFactory(2 /* version */,
|
|
||||||
0 /* global_seqno*/));
|
|
||||||
}
|
|
||||||
std::string column_family_name;
|
std::string column_family_name;
|
||||||
|
|
||||||
FileChecksumTestHelper f(true);
|
FileChecksumTestHelper f(true);
|
||||||
@ -3307,17 +3299,9 @@ TEST_P(BlockBasedTableTest, Crc32cFileChecksum) {
|
|||||||
BlockBasedTableOptions table_options = GetBlockBasedTableOptions();
|
BlockBasedTableOptions table_options = GetBlockBasedTableOptions();
|
||||||
std::unique_ptr<InternalKeyComparator> comparator(
|
std::unique_ptr<InternalKeyComparator> comparator(
|
||||||
new InternalKeyComparator(BytewiseComparator()));
|
new InternalKeyComparator(BytewiseComparator()));
|
||||||
SequenceNumber largest_seqno = 0;
|
|
||||||
int level = 0;
|
int level = 0;
|
||||||
std::vector<std::unique_ptr<IntTblPropCollectorFactory>>
|
std::vector<std::unique_ptr<IntTblPropCollectorFactory>>
|
||||||
int_tbl_prop_collector_factories;
|
int_tbl_prop_collector_factories;
|
||||||
|
|
||||||
if (largest_seqno != 0) {
|
|
||||||
// Pretend that it's an external file written by SstFileWriter.
|
|
||||||
int_tbl_prop_collector_factories.emplace_back(
|
|
||||||
new SstFileWriterPropertiesCollectorFactory(2 /* version */,
|
|
||||||
0 /* global_seqno*/));
|
|
||||||
}
|
|
||||||
std::string column_family_name;
|
std::string column_family_name;
|
||||||
|
|
||||||
FileChecksumGenContext gen_context;
|
FileChecksumGenContext gen_context;
|
||||||
|
Loading…
Reference in New Issue
Block a user