diff options
Diffstat (limited to 'src/mongo/rpc/protocol.h')
-rw-r--r-- | src/mongo/rpc/protocol.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/rpc/protocol.h b/src/mongo/rpc/protocol.h index 99e6cacc92c..8999f0b40d2 100644 --- a/src/mongo/rpc/protocol.h +++ b/src/mongo/rpc/protocol.h @@ -35,6 +35,7 @@ #include "mongo/platform/cstdint.h" namespace mongo { +class BSONObj; namespace rpc { /** @@ -95,5 +96,10 @@ StatusWith<StringData> toString(ProtocolSet protocols); */ StatusWith<ProtocolSet> parseProtocolSet(StringData repr); +/** + * Determines the ProtocolSet of a remote server from an isMaster reply. + */ +StatusWith<ProtocolSet> parseProtocolSetFromIsMasterReply(const BSONObj& isMasterReply); + } // namespace rpc } // namespace mongo |