diff options
author | Zach Yam <zach.yam@mongodb.com> | 2019-06-13 13:06:39 -0400 |
---|---|---|
committer | Zach Yam <zach.yam@mongodb.com> | 2019-06-13 13:06:39 -0400 |
commit | 027a917ad08296f90a1a4a010daf990c5f92beb6 (patch) | |
tree | 6f2b76145871cf97256f01df2d64092355eb8343 /src/mongo/db/storage/kv/kv_engine_test_harness.cpp | |
parent | 0eb5d53338bfcff847ce1b9e34b7344dcaf9ed84 (diff) | |
download | mongo-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.cpp | 4 |
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); } } |