summaryrefslogtreecommitdiff
path: root/src/mongo/db/index/hash_access_method.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
commit0eb5d53338bfcff847ce1b9e34b7344dcaf9ed84 (patch)
treec067050a455532031d78652b85c59d59e12cff95 /src/mongo/db/index/hash_access_method.cpp
parentbde7615a648ad9bacef680bc5144dcc8c308f6f4 (diff)
downloadmongo-0eb5d53338bfcff847ce1b9e34b7344dcaf9ed84.tar.gz
Revert "Make get(Grouped)SortedDataInterface return a unique pointer"
This reverts commit 90a74a50044d4daff7fa66e050bd76e70a0c7e56.
Diffstat (limited to 'src/mongo/db/index/hash_access_method.cpp')
-rw-r--r--src/mongo/db/index/hash_access_method.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/index/hash_access_method.cpp b/src/mongo/db/index/hash_access_method.cpp
index 3aae1930d40..c78a3f1cf9f 100644
--- a/src/mongo/db/index/hash_access_method.cpp
+++ b/src/mongo/db/index/hash_access_method.cpp
@@ -36,9 +36,8 @@
namespace mongo {
-HashAccessMethod::HashAccessMethod(IndexCatalogEntry* btreeState,
- std::unique_ptr<SortedDataInterface> btree)
- : AbstractIndexAccessMethod(btreeState, std::move(btree)) {
+HashAccessMethod::HashAccessMethod(IndexCatalogEntry* btreeState, SortedDataInterface* btree)
+ : AbstractIndexAccessMethod(btreeState, btree) {
const IndexDescriptor* descriptor = btreeState->descriptor();
// We can change these if the single-field limitation is lifted later.