Fix BlockBasedTableTest.NoopTransformSeek failure
Summary: table_test is failing because we are creating a temp InternalComparator 14:27:28 [ RUN ] BlockBasedTableTest.NoopTransformSeek 14:27:28 pure virtual method called 14:27:28 terminate called without an active exception 14:27:28 /bin/sh: line 7: 2346261 Aborted (core dumped) ./$t Test Plan: make table_test -j64 && ./table_test --gtest_filter="BlockBasedTableTest.NoopTransformSeek" Reviewers: igor, sdong, anthony, rven Reviewed By: rven Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D52671
This commit is contained in:
parent
af8fdd77ea
commit
d4d5acbf87
@ -1234,8 +1234,9 @@ TEST_F(BlockBasedTableTest, NoopTransformSeek) {
|
|||||||
std::vector<std::string> keys;
|
std::vector<std::string> keys;
|
||||||
stl_wrappers::KVMap kvmap;
|
stl_wrappers::KVMap kvmap;
|
||||||
const ImmutableCFOptions ioptions(options);
|
const ImmutableCFOptions ioptions(options);
|
||||||
c.Finish(options, ioptions, table_options,
|
const InternalKeyComparator internal_comparator(options.comparator);
|
||||||
InternalKeyComparator(options.comparator), &keys, &kvmap);
|
c.Finish(options, ioptions, table_options, internal_comparator, &keys,
|
||||||
|
&kvmap);
|
||||||
|
|
||||||
auto* reader = c.GetTableReader();
|
auto* reader = c.GetTableReader();
|
||||||
for (int i = 0; i < 2; ++i) {
|
for (int i = 0; i < 2; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user