summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.cpp
diff options
context:
space:
mode:
authorAlya Berciu <alyacarina@gmail.com>2021-05-17 18:19:15 +0100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-24 09:10:39 +0000
commit1059d33fa4a0d5c747a1115f0853b5f70e46f112 (patch)
tree8df47fa9cab779c578f9f52057ccccb6c1d46f15 /src/mongo/db/curop.cpp
parent3f14978f40cfe899b632c43f498117080db42c77 (diff)
downloadmongo-1059d33fa4a0d5c747a1115f0853b5f70e46f112.tar.gz
SERVER-55015 Replace GetMoreRequest with IDL-generated GetMoreCommand
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r--src/mongo/db/curop.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp
index 20bc4610e65..5cdb28929ed 100644
--- a/src/mongo/db/curop.cpp
+++ b/src/mongo/db/curop.cpp
@@ -48,7 +48,7 @@
#include "mongo/db/json.h"
#include "mongo/db/prepare_conflict_tracker.h"
#include "mongo/db/profile_filter.h"
-#include "mongo/db/query/getmore_request.h"
+#include "mongo/db/query/getmore_command_gen.h"
#include "mongo/db/query/plan_summary_stats.h"
#include "mongo/logv2/log.h"
#include "mongo/rpc/metadata/client_metadata.h"
@@ -143,14 +143,9 @@ BSONObj upconvertQueryEntry(const BSONObj& query,
}
BSONObj upconvertGetMoreEntry(const NamespaceString& nss, CursorId cursorId, int ntoreturn) {
- return GetMoreRequest(nss,
- cursorId,
- ntoreturn,
- boost::none, // awaitDataTimeout
- boost::none, // term
- boost::none // lastKnownCommittedOpTime
- )
- .toBSON();
+ GetMoreCommandRequest getMoreRequest(cursorId, nss.coll().toString());
+ getMoreRequest.setBatchSize(ntoreturn);
+ return getMoreRequest.toBSON({});
}
/**