summaryrefslogtreecommitdiff
path: root/src/mongo/db/sessions_collection.cpp
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2018-02-28 18:32:47 -0500
committerJason Carey <jcarey@argv.me>2018-03-02 15:58:09 -0500
commitbbc4ce5b1118ae19af6b824277009eae7352d477 (patch)
tree06c07ec2c05c27e280c4fc6d977c56cc6c79bb30 /src/mongo/db/sessions_collection.cpp
parent721846a8b4b64d72338b46f91002d4a601c7dbba (diff)
downloadmongo-bbc4ce5b1118ae19af6b824277009eae7352d477.tar.gz
SERVER-33569 Don't allowPartialResults for session refresh
The check for logical session existence must not allow partial results. While this is on, an unresponsive shard can cause cursor and retryable write state to be prematurely erased.
Diffstat (limited to 'src/mongo/db/sessions_collection.cpp')
-rw-r--r--src/mongo/db/sessions_collection.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mongo/db/sessions_collection.cpp b/src/mongo/db/sessions_collection.cpp
index 49644651e23..bf4056cb5c3 100644
--- a/src/mongo/db/sessions_collection.cpp
+++ b/src/mongo/db/sessions_collection.cpp
@@ -304,7 +304,6 @@ StatusWith<LogicalSessionIdSet> SessionsCollection::doFetch(const NamespaceStrin
request.getProjection().set_id(1);
request.setBatchSize(batch.size());
request.setLimit(batch.size());
- request.setAllowPartialResults(true);
request.setSingleBatch(true);
return wrappedSend(request.toBSON());