summaryrefslogtreecommitdiff
path: root/src/mongo/client/remote_command_runner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/remote_command_runner.cpp')
-rw-r--r--src/mongo/client/remote_command_runner.cpp35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/mongo/client/remote_command_runner.cpp b/src/mongo/client/remote_command_runner.cpp
index e60f4c698c2..84899cd2429 100644
--- a/src/mongo/client/remote_command_runner.cpp
+++ b/src/mongo/client/remote_command_runner.cpp
@@ -34,26 +34,27 @@
namespace mongo {
- const Milliseconds RemoteCommandRequest::kNoTimeout{-1};
- const Date_t RemoteCommandRequest::kNoExpirationDate{Date_t::max()};
+const Milliseconds RemoteCommandRequest::kNoTimeout{-1};
+const Date_t RemoteCommandRequest::kNoExpirationDate{Date_t::max()};
- std::string RemoteCommandRequest::toString() const {
- str::stream out;
- out << "RemoteCommand -- target:" << target.toString() << " db:" << dbname;
+std::string RemoteCommandRequest::toString() const {
+ str::stream out;
+ out << "RemoteCommand -- target:" << target.toString() << " db:" << dbname;
- if (expirationDate != kNoExpirationDate) {
- out << " expDate:" << expirationDate.toString();
- }
-
- out << " cmd:" << cmdObj.toString();
- return out;
+ if (expirationDate != kNoExpirationDate) {
+ out << " expDate:" << expirationDate.toString();
}
- std::string RemoteCommandResponse::toString() const {
- str::stream out;
- out << "RemoteResponse -- " << " cmd:" << data.toString();
+ out << " cmd:" << cmdObj.toString();
+ return out;
+}
- return out;
- }
+std::string RemoteCommandResponse::toString() const {
+ str::stream out;
+ out << "RemoteResponse -- "
+ << " cmd:" << data.toString();
+
+ return out;
+}
-} // namespace mongo
+} // namespace mongo