summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclientinterface.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2018-05-29 18:53:58 -0400
committerMathias Stearn <mathias@10gen.com>2018-05-31 11:52:45 -0400
commit8d9dfb75298b9a182bb3fcb01e0140b03da37a59 (patch)
tree87e8bb5ed16903faf624a10ba8d067d903df8ea2 /src/mongo/client/dbclientinterface.h
parent8fcb4e1bbc38f2c87ff6b63bf305e2695218f103 (diff)
downloadmongo-8d9dfb75298b9a182bb3fcb01e0140b03da37a59.tar.gz
SERVER-35115 Decouple DBDirectClient from networking clients
Diffstat (limited to 'src/mongo/client/dbclientinterface.h')
-rw-r--r--src/mongo/client/dbclientinterface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/client/dbclientinterface.h b/src/mongo/client/dbclientinterface.h
index a0b4782062b..7978d1c1a0d 100644
--- a/src/mongo/client/dbclientinterface.h
+++ b/src/mongo/client/dbclientinterface.h
@@ -810,6 +810,9 @@ public:
virtual rpc::UniqueReply parseCommandReplyMessage(const std::string& host,
const Message& replyMsg);
+ // This is only for DBClientCursor.
+ static void (*withConnection_do_not_use)(std::string host, std::function<void(DBClientBase*)>);
+
protected:
/** if the result of a command is ok*/
bool isOk(const BSONObj&);