diff options
author | Hana Pearlman <hana.pearlman@mongodb.com> | 2021-08-20 14:04:06 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-20 14:48:52 +0000 |
commit | c3af4467a404fffebd8b8584fc8c24160d02e850 (patch) | |
tree | 2bda49bda5870ecf8e70d6d35e1554343442aa4c /src/mongo/s/query/async_results_merger.cpp | |
parent | 2d5f7632b30fa6b57992cd6db314ab2a5ca076a6 (diff) | |
download | mongo-c3af4467a404fffebd8b8584fc8c24160d02e850.tar.gz |
SERVER-58586: Improve ClientCursor on mongoD to store and restore theā¦
Diffstat (limited to 'src/mongo/s/query/async_results_merger.cpp')
-rw-r--r-- | src/mongo/s/query/async_results_merger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/query/async_results_merger.cpp b/src/mongo/s/query/async_results_merger.cpp index 67004487967..ed7da3a2545 100644 --- a/src/mongo/s/query/async_results_merger.cpp +++ b/src/mongo/s/query/async_results_merger.cpp @@ -449,7 +449,7 @@ Status AsyncResultsMerger::_askForNextBatch(WithLock, size_t remoteIndex) { getMoreRequest.setMaxTimeMS( static_cast<std::int64_t>(durationCount<Milliseconds>(*_awaitDataTimeout))); } - BSONObj cmdObj = getMoreRequest.toBSON(ReadPreferenceSetting::get(_opCtx).toContainingBSON()); + BSONObj cmdObj = getMoreRequest.toBSON({}); if (_params.getSessionId()) { BSONObjBuilder newCmdBob(std::move(cmdObj)); |