diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-06-21 12:53:04 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-06-28 11:57:04 -0400 |
commit | b70aab6e1f4c3230da27aa04cb6fa25f2341b9a6 (patch) | |
tree | ac5dd78f85c85a7ca1aa630ef5c05ea2215382a8 /src/mongo/s/server.cpp | |
parent | 0ee13c59b1c5106ee8e3eb73ffa2e1ba92a86e9a (diff) | |
download | mongo-b70aab6e1f4c3230da27aa04cb6fa25f2341b9a6.tar.gz |
SERVER-29776 Add codeName to more command failure paths
Diffstat (limited to 'src/mongo/s/server.cpp')
-rw-r--r-- | src/mongo/s/server.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp index dfb2eb21aa7..187451d237c 100644 --- a/src/mongo/s/server.cpp +++ b/src/mongo/s/server.cpp @@ -179,16 +179,6 @@ static void cleanupTask() { audit::logShutdown(Client::getCurrent()); } -static BSONObj buildErrReply(const DBException& ex) { - BSONObjBuilder errB; - errB.append("$err", ex.what()); - errB.append("code", ex.getCode()); - if (!ex._shard.empty()) { - errB.append("shard", ex._shard); - } - return errB.obj(); -} - } // namespace mongo using namespace mongo; |