diff options
author | Mathias Stearn <mathias@10gen.com> | 2018-05-02 17:32:34 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2018-05-08 14:57:37 -0400 |
commit | db41862c5380ab33cf28db99726cdac252df0872 (patch) | |
tree | a0fefd08ea9cc063456abe796390faaaa07ec272 /src/mongo/rpc | |
parent | 2d35461cb54e35afea223714fab1a184a9b381e2 (diff) | |
download | mongo-db41862c5380ab33cf28db99726cdac252df0872.tar.gz |
SERVER-34628 Really remove appendCommandStatus
All remaining callers are transitioned to some form of usassert. This was done
with an elaborate set of vim macros to make this tractable. Therefore it
should not be considered an example of the best way to write new code, just as
an improvement on what was there before. In particular, I couldn't easily
remove Status's that are named then only used once in uassertStatusOK, nor
could I convert the pattern of checking a StatusWith<T>'s getStatus() then
calling getValue() to just call uassertStatusOK(returnsStatusWith()).
Diffstat (limited to 'src/mongo/rpc')
-rw-r--r-- | src/mongo/rpc/reply_builder_interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/rpc/reply_builder_interface.cpp b/src/mongo/rpc/reply_builder_interface.cpp index 461e3edc6a3..8a4460d7247 100644 --- a/src/mongo/rpc/reply_builder_interface.cpp +++ b/src/mongo/rpc/reply_builder_interface.cpp @@ -44,7 +44,7 @@ const char kCodeField[] = "code"; const char kCodeNameField[] = "codeName"; const char kErrorField[] = "errmsg"; -// similar to appendCommandStatus (duplicating logic here to avoid cyclic library +// similar to appendCommandStatusNoThrow (duplicating logic here to avoid cyclic library // dependency) BSONObj augmentReplyWithStatus(const Status& status, BSONObj reply) { auto okField = reply.getField(kOKField); |