From e88c6d85036607ddf86105234917b4adfffbd612 Mon Sep 17 00:00:00 2001 From: William Schultz Date: Thu, 5 Apr 2018 13:56:47 -0400 Subject: Revert "SERVER-33323 Use the IDL to serialize the ARM" This reverts commit 7d09f278a2acf9791b36927d6af1d30347d60391. --- src/mongo/shell/bench.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/mongo/shell') diff --git a/src/mongo/shell/bench.cpp b/src/mongo/shell/bench.cpp index 27b75dbb06c..b096affd2cd 100644 --- a/src/mongo/shell/bench.cpp +++ b/src/mongo/shell/bench.cpp @@ -214,15 +214,12 @@ int runQueryWithReadCommands(DBClientBase* conn, } while (cursorResponse.getCursorId() != 0) { - GetMoreRequest getMoreRequest( - qr->nss(), - cursorResponse.getCursorId(), - qr->getBatchSize() - ? boost::optional(static_cast(*qr->getBatchSize())) - : boost::none, - boost::none, // maxTimeMS - boost::none, // term - boost::none); // lastKnownCommittedOpTime + GetMoreRequest getMoreRequest(qr->nss(), + cursorResponse.getCursorId(), + qr->getBatchSize(), + boost::none, // maxTimeMS + boost::none, // term + boost::none); // lastKnownCommittedOpTime BSONObj getMoreCommandResult; uassert(ErrorCodes::CommandFailed, str::stream() << "getMore command failed; reply was: " << getMoreCommandResult, -- cgit v1.2.1