diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2015-11-02 16:50:09 -0500 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2015-11-05 14:51:45 -0500 |
commit | 4cf3913b4e19a05b6b5f67e099cc76df15088d7f (patch) | |
tree | 7ce9191cd8c4fc86904a3f74bc27606a0baf753d /src/mongo/db/dbdirectclient.cpp | |
parent | fef65b69202c850fd05cd22b94351688e4785188 (diff) | |
download | mongo-4cf3913b4e19a05b6b5f67e099cc76df15088d7f.tar.gz |
SERVER-20640 Get wire versions from native DBClient instead of running isMaster
Diffstat (limited to 'src/mongo/db/dbdirectclient.cpp')
-rw-r--r-- | src/mongo/db/dbdirectclient.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/dbdirectclient.cpp b/src/mongo/db/dbdirectclient.cpp index 519cade63ad..8842c1c4a96 100644 --- a/src/mongo/db/dbdirectclient.cpp +++ b/src/mongo/db/dbdirectclient.cpp @@ -35,6 +35,7 @@ #include "mongo/db/instance.h" #include "mongo/db/lasterror.h" #include "mongo/db/operation_context.h" +#include "mongo/db/wire_version.h" #include "mongo/util/log.h" namespace mongo { @@ -89,6 +90,13 @@ std::string DBDirectClient::getServerAddress() const { return "localhost"; // TODO: should this have the port? } +int DBDirectClient::getMinWireVersion() { + return kMinWireVersion; +} +int DBDirectClient::getMaxWireVersion() { + return kMaxWireVersion; +} + bool DBDirectClient::callRead(Message& toSend, Message& response) { return call(toSend, response); } |