diff options
author | Zach Yam <zach.yam@mongodb.com> | 2019-06-07 16:04:08 -0400 |
---|---|---|
committer | Zach Yam <zach.yam@mongodb.com> | 2019-06-12 10:44:04 -0400 |
commit | 90a74a50044d4daff7fa66e050bd76e70a0c7e56 (patch) | |
tree | 217077f05cfebe7aa8a37a6ab60440ce111aaf88 /src/mongo/db/index/fts_access_method.cpp | |
parent | 2cd33c3953e54018d8ed687f6c03c7575fe518eb (diff) | |
download | mongo-90a74a50044d4daff7fa66e050bd76e70a0c7e56.tar.gz |
Make get(Grouped)SortedDataInterface return a unique pointer
Diffstat (limited to 'src/mongo/db/index/fts_access_method.cpp')
-rw-r--r-- | src/mongo/db/index/fts_access_method.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/index/fts_access_method.cpp b/src/mongo/db/index/fts_access_method.cpp index 2912569dfb4..46f20b77b78 100644 --- a/src/mongo/db/index/fts_access_method.cpp +++ b/src/mongo/db/index/fts_access_method.cpp @@ -34,8 +34,10 @@ namespace mongo { -FTSAccessMethod::FTSAccessMethod(IndexCatalogEntry* btreeState, SortedDataInterface* btree) - : AbstractIndexAccessMethod(btreeState, btree), _ftsSpec(btreeState->descriptor()->infoObj()) {} +FTSAccessMethod::FTSAccessMethod(IndexCatalogEntry* btreeState, + std::unique_ptr<SortedDataInterface> btree) + : AbstractIndexAccessMethod(btreeState, std::move(btree)), + _ftsSpec(btreeState->descriptor()->infoObj()) {} void FTSAccessMethod::doGetKeys(const BSONObj& obj, BSONObjSet* keys, |