summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient_cursor.cpp
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@mongodb.com>2020-01-16 23:26:34 +0000
committerevergreen <evergreen@mongodb.com>2020-01-16 23:26:34 +0000
commit8003fc047c5c742829ba80b86ec2e6c5bb4e8453 (patch)
tree9aad28e028559b1832035ec9c40bafb2169f6e1c /src/mongo/client/dbclient_cursor.cpp
parent02f3b3a204bdc0e1b157a3839be91dc56f685077 (diff)
downloadmongo-8003fc047c5c742829ba80b86ec2e6c5bb4e8453.tar.gz
SERVER-43276 Implement resume after network error functionality in CollectionCloner query
Diffstat (limited to 'src/mongo/client/dbclient_cursor.cpp')
-rw-r--r--src/mongo/client/dbclient_cursor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/client/dbclient_cursor.cpp b/src/mongo/client/dbclient_cursor.cpp
index 244e893f88b..3c167ee1205 100644
--- a/src/mongo/client/dbclient_cursor.cpp
+++ b/src/mongo/client/dbclient_cursor.cpp
@@ -332,6 +332,8 @@ void DBClientCursor::dataReceived(const Message& reply, bool& retry, string& hos
!(_connectionHasPendingReplies && cursorId == 0));
ns = cr.getNSS(); // Unlike OP_REPLY, find command can change the ns to use for getMores.
+ // Store the resume token, if we got one.
+ _postBatchResumeToken = cr.getPostBatchResumeToken();
batch.objs = cr.releaseBatch();
return;
}