From 7d09f278a2acf9791b36927d6af1d30347d60391 Mon Sep 17 00:00:00 2001 From: Charlie Swanson Date: Thu, 1 Mar 2018 17:37:52 -0500 Subject: SERVER-33323 Use the IDL to serialize the ARM --- src/mongo/shell/bench.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/mongo/shell') diff --git a/src/mongo/shell/bench.cpp b/src/mongo/shell/bench.cpp index b096affd2cd..27b75dbb06c 100644 --- a/src/mongo/shell/bench.cpp +++ b/src/mongo/shell/bench.cpp @@ -214,12 +214,15 @@ int runQueryWithReadCommands(DBClientBase* conn, } while (cursorResponse.getCursorId() != 0) { - GetMoreRequest getMoreRequest(qr->nss(), - cursorResponse.getCursorId(), - qr->getBatchSize(), - boost::none, // maxTimeMS - boost::none, // term - boost::none); // lastKnownCommittedOpTime + 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 BSONObj getMoreCommandResult; uassert(ErrorCodes::CommandFailed, str::stream() << "getMore command failed; reply was: " << getMoreCommandResult, -- cgit v1.2.1