summaryrefslogtreecommitdiff
path: root/src/mongo/s/stale_exception.h
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
commit6dcdd23dd37ef12c87e71cf59ef01cd82432efe0 (patch)
treec8cfb5acb62c80f375bc37e7d4350382deea6a37 /src/mongo/s/stale_exception.h
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'src/mongo/s/stale_exception.h')
-rw-r--r--src/mongo/s/stale_exception.h29
1 files changed, 17 insertions, 12 deletions
diff --git a/src/mongo/s/stale_exception.h b/src/mongo/s/stale_exception.h
index 90d6e0060e6..5268da4c5ef 100644
--- a/src/mongo/s/stale_exception.h
+++ b/src/mongo/s/stale_exception.h
@@ -47,8 +47,11 @@ public:
ChunkVersion wanted)
: AssertionException(
str::stream() << raw << " ( ns : " << ns << ", received : " << received.toString()
- << ", wanted : " << wanted.toString() << ", "
- << (code == ErrorCodes::SendStaleConfig ? "send" : "recv") << " )",
+ << ", wanted : "
+ << wanted.toString()
+ << ", "
+ << (code == ErrorCodes::SendStaleConfig ? "send" : "recv")
+ << " )",
code),
_ns(ns),
_received(received),
@@ -56,16 +59,18 @@ public:
/** Preferred if we're rebuilding this from a thrown exception */
StaleConfigException(const std::string& raw, int code, const BSONObj& error)
- : AssertionException(str::stream()
- << raw << " ( ns : " << (error["ns"].type() == String
- ? error["ns"].String()
- : std::string("<unknown>"))
- << ", received : "
- << ChunkVersion::fromBSON(error, "vReceived").toString()
- << ", wanted : "
- << ChunkVersion::fromBSON(error, "vWanted").toString() << ", "
- << (code == ErrorCodes::SendStaleConfig ? "send" : "recv") << " )",
- code),
+ : AssertionException(
+ str::stream() << raw << " ( ns : " << (error["ns"].type() == String
+ ? error["ns"].String()
+ : std::string("<unknown>"))
+ << ", received : "
+ << ChunkVersion::fromBSON(error, "vReceived").toString()
+ << ", wanted : "
+ << ChunkVersion::fromBSON(error, "vWanted").toString()
+ << ", "
+ << (code == ErrorCodes::SendStaleConfig ? "send" : "recv")
+ << " )",
+ code),
// For legacy reasons, we may not always get a namespace here
_ns(error["ns"].type() == String ? error["ns"].String() : ""),
_received(ChunkVersion::fromBSON(error, "vReceived")),