diff options
author | Faustoleyva54 <fausto.leyva@mongodb.com> | 2022-09-15 15:43:58 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-15 18:38:41 +0000 |
commit | 881ad6801b77be9529baf34f421d05f5a7ccaca4 (patch) | |
tree | 2c19b1d8d7f85f50cf8d399e461af5f51e3c56b2 /src/mongo/db/commands/getmore_cmd.cpp | |
parent | d1a117a1abc9ead34fc6399697055a46ca0c1df4 (diff) | |
download | mongo-881ad6801b77be9529baf34f421d05f5a7ccaca4.tar.gz |
SERVER-68336 Add version of AutoGetCollection which takes a struct for its optional parameters
Diffstat (limited to 'src/mongo/db/commands/getmore_cmd.cpp')
-rw-r--r-- | src/mongo/db/commands/getmore_cmd.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/commands/getmore_cmd.cpp b/src/mongo/db/commands/getmore_cmd.cpp index 7ea168e4ade..17edcdd837c 100644 --- a/src/mongo/db/commands/getmore_cmd.cpp +++ b/src/mongo/db/commands/getmore_cmd.cpp @@ -517,9 +517,8 @@ public: // cursor's executor when constructing 'readLock'. readLock.emplace(opCtx, cursorPin->getExecutor()->nss(), - AutoGetCollectionViewMode::kViewsForbidden, - Date_t::max(), - cursorPin->getExecutor()->getSecondaryNamespaces()); + AutoGetCollection::Options{}.secondaryNssOrUUIDs( + cursorPin->getExecutor()->getSecondaryNamespaces())); statsTracker.emplace( opCtx, |