diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2015-06-15 14:06:09 -0400 |
---|---|---|
committer | Adam Midvidy <amidvidy@gmail.com> | 2015-06-16 16:25:39 -0400 |
commit | 49c54afb7abfeceb0f9f03ed59df69b9cf22a5e7 (patch) | |
tree | 6e71691c78f7354d49bd87986c983aad2530d4ae /src/mongo/rpc/legacy_reply_builder.cpp | |
parent | 4eb15b34d157e2719fc9034f5956b698d96ef64e (diff) | |
download | mongo-49c54afb7abfeceb0f9f03ed59df69b9cf22a5e7.tar.gz |
SERVER-18292 expose protocol type of RPC classes and
check that they match in runCommandWithMetadata
Diffstat (limited to 'src/mongo/rpc/legacy_reply_builder.cpp')
-rw-r--r-- | src/mongo/rpc/legacy_reply_builder.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/rpc/legacy_reply_builder.cpp b/src/mongo/rpc/legacy_reply_builder.cpp index 343e6874d4f..69134af3628 100644 --- a/src/mongo/rpc/legacy_reply_builder.cpp +++ b/src/mongo/rpc/legacy_reply_builder.cpp @@ -82,6 +82,10 @@ namespace rpc { return _state; } + Protocol LegacyReplyBuilder::getProtocol() const { + return rpc::Protocol::kOpQuery; + } + std::unique_ptr<Message> LegacyReplyBuilder::done() { invariant(_state == State::kOutputDocs); std::unique_ptr<Message> message = stdx::make_unique<Message>(); |