From f3fb39814db5a2e611553d52f65b003ccece0334 Mon Sep 17 00:00:00 2001 From: Islam AbdelRahman Date: Thu, 7 Jan 2016 09:48:29 -0800 Subject: [PATCH] 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 --- table/table_test.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/table/table_test.cc b/table/table_test.cc index abaf5ee91..0a84f2750 100644 --- a/table/table_test.cc +++ b/table/table_test.cc @@ -1260,8 +1260,9 @@ TEST_F(BlockBasedTableTest, NoopTransformSeek) { std::vector keys; stl_wrappers::KVMap kvmap; const ImmutableCFOptions ioptions(options); - c.Finish(options, ioptions, table_options, - InternalKeyComparator(options.comparator), &keys, &kvmap); + const InternalKeyComparator internal_comparator(options.comparator); + c.Finish(options, ioptions, table_options, internal_comparator, &keys, + &kvmap); auto* reader = c.GetTableReader(); for (int i = 0; i < 2; ++i) {