diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2018-03-01 17:37:52 -0500 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2018-04-04 17:23:50 -0400 |
commit | 7d09f278a2acf9791b36927d6af1d30347d60391 (patch) | |
tree | 91138c5de49ba3f300df43f840e63c9979a9cebd /src/mongo/shell | |
parent | 09253ad8f4187f4e7e4c453cc157362d751e0918 (diff) | |
download | mongo-7d09f278a2acf9791b36927d6af1d30347d60391.tar.gz |
SERVER-33323 Use the IDL to serialize the ARM
Diffstat (limited to 'src/mongo/shell')
-rw-r--r-- | src/mongo/shell/bench.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
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<std::int64_t>(static_cast<std::int64_t>(*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, |