summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclientcursor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/dbclientcursor.cpp')
-rw-r--r--src/mongo/client/dbclientcursor.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mongo/client/dbclientcursor.cpp b/src/mongo/client/dbclientcursor.cpp
index 60b3c676b74..f30cd35b963 100644
--- a/src/mongo/client/dbclientcursor.cpp
+++ b/src/mongo/client/dbclientcursor.cpp
@@ -169,15 +169,6 @@ namespace {
void DBClientCursor::initLazy( bool isRetry ) {
massert( 15875 , "DBClientCursor::initLazy called on a client that doesn't support lazy" , _client->lazySupported() );
- if (DBClientWithCommands::RunCommandHookFunc hook = _client->getRunCommandHook()) {
- if (NamespaceString(ns).isCommand()) {
- BSONObjBuilder bob;
- bob.appendElements(query);
- hook(&bob);
- query = bob.obj();
- }
- }
-
Message toSend;
_assembleInit( toSend );
_client->say( toSend, isRetry, &_originalHost );
@@ -203,13 +194,6 @@ namespace {
dataReceived( retry, _lazyHost );
- if (DBClientWithCommands::PostRunCommandHookFunc hook = _client->getPostRunCommandHook()) {
- if (NamespaceString(ns).isCommand()) {
- BSONObj cmdResponse = peekFirst();
- hook(cmdResponse, _lazyHost);
- }
- }
-
return ! retry;
}