]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
Fix BlockBasedTableTest.NoopTransformSeek failure
authorIslam AbdelRahman <tec@fb.com>
Thu, 7 Jan 2016 17:48:29 +0000 (09:48 -0800)
committerIslam AbdelRahman <tec@fb.com>
Wed, 27 Jan 2016 02:51:31 +0000 (18:51 -0800)
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

index 8f1380e0ea5a412de3ed1178b5125c614a20eba0..e1d1c09c5612e76736013e297fad5f6da494d227 100644 (file)
@@ -1260,8 +1260,9 @@ TEST_F(BlockBasedTableTest, NoopTransformSeek) {
   std::vector<std::string> 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) {