summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/kv/kv_engine_test_harness.cpp
diff options
context:
space:
mode:
authorZach Yam <zach.yam@mongodb.com>2019-06-13 13:06:39 -0400
committerZach Yam <zach.yam@mongodb.com>2019-06-13 13:06:39 -0400
commit027a917ad08296f90a1a4a010daf990c5f92beb6 (patch)
tree6f2b76145871cf97256f01df2d64092355eb8343 /src/mongo/db/storage/kv/kv_engine_test_harness.cpp
parent0eb5d53338bfcff847ce1b9e34b7344dcaf9ed84 (diff)
downloadmongo-027a917ad08296f90a1a4a010daf990c5f92beb6.tar.gz
SERVER-36226 Make get(Grouped)SortedDataInterface return a unique pointer
Diffstat (limited to 'src/mongo/db/storage/kv/kv_engine_test_harness.cpp')
-rw-r--r--src/mongo/db/storage/kv/kv_engine_test_harness.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/storage/kv/kv_engine_test_harness.cpp b/src/mongo/db/storage/kv/kv_engine_test_harness.cpp
index afd0cbb68b8..22cb8778836 100644
--- a/src/mongo/db/storage/kv/kv_engine_test_harness.cpp
+++ b/src/mongo/db/storage/kv/kv_engine_test_harness.cpp
@@ -182,7 +182,7 @@ TEST(KVEngineTestHarness, SimpleSorted1) {
{
MyOperationContext opCtx(engine);
ASSERT_OK(engine->createSortedDataInterface(&opCtx, ident, &desc));
- sorted.reset(engine->getSortedDataInterface(&opCtx, ident, &desc));
+ sorted = engine->getSortedDataInterface(&opCtx, ident, &desc);
ASSERT(sorted);
}
@@ -725,7 +725,7 @@ DEATH_TEST_F(KVCatalogTest, TerminateOnNonNumericIndexVersion, "Fatal Assertion
{
MyOperationContext opCtx(engine);
ASSERT_OK(engine->createSortedDataInterface(&opCtx, ident, &desc));
- sorted.reset(engine->getSortedDataInterface(&opCtx, ident, &desc));
+ sorted = engine->getSortedDataInterface(&opCtx, ident, &desc);
ASSERT(sorted);
}
}