summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2018-03-13 15:26:04 -0400
committerAndy Schwerin <schwerin@mongodb.com>2018-03-15 17:36:38 -0400
commita65df88a0d7ea660e5d87aa667c77c4d4a999bca (patch)
tree9f1e27cee480206243fddee60b0ce5797778aa10 /src/mongo/db/clientcursor.cpp
parente1418190f72787f9a21d5251ad6290076dbc4ae9 (diff)
downloadmongo-a65df88a0d7ea660e5d87aa667c77c4d4a999bca.tar.gz
SERVER-31802 Rip out more dead master-slave code, and the related concept of RID.
Diffstat (limited to 'src/mongo/db/clientcursor.cpp')
-rw-r--r--src/mongo/db/clientcursor.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mongo/db/clientcursor.cpp b/src/mongo/db/clientcursor.cpp
index 27d851fa043..f960afc60d7 100644
--- a/src/mongo/db/clientcursor.cpp
+++ b/src/mongo/db/clientcursor.cpp
@@ -129,23 +129,6 @@ void ClientCursor::dispose(OperationContext* opCtx) {
_disposed = true;
}
-void ClientCursor::updateSlaveLocation(OperationContext* opCtx) {
- if (_slaveReadTill.isNull())
- return;
-
- verify(_nss.isOplog());
-
- Client* c = opCtx->getClient();
- verify(c);
- OID rid = repl::ReplClientInfo::forClient(c).getRemoteID();
- if (!rid.isSet())
- return;
-
- repl::ReplicationCoordinator::get(opCtx)
- ->setLastOptimeForSlave(rid, _slaveReadTill)
- .transitional_ignore();
-}
-
//
// Pin methods
//