diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2018-01-30 12:54:32 -0500 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2018-02-01 16:56:09 -0500 |
commit | 62ca1bcdd3dcc634a6fa91204b0f0941eb76399e (patch) | |
tree | 8e972fb8cc1d636549e85a5f347406623b726463 /src/mongo/db/commands.cpp | |
parent | 3a5d38b81eac17e6be7b2d6813ca4c2b8ab619a3 (diff) | |
download | mongo-62ca1bcdd3dcc634a6fa91204b0f0941eb76399e.tar.gz |
SERVER-32958 small changes to remaining Command member signatures.
Diffstat (limited to 'src/mongo/db/commands.cpp')
-rw-r--r-- | src/mongo/db/commands.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/mongo/db/commands.cpp b/src/mongo/db/commands.cpp index 24292e6a3c8..bcd9c3e1d4d 100644 --- a/src/mongo/db/commands.cpp +++ b/src/mongo/db/commands.cpp @@ -371,17 +371,6 @@ Status BasicCommand::checkAuthForCommand(Client* client, return Status(ErrorCodes::Unauthorized, "unauthorized"); } -void Command::redactForLogging(mutablebson::Document* cmdObj) {} - -BSONObj Command::getRedactedCopyForLogging(const BSONObj& cmdObj) { - namespace mmb = mutablebson; - mmb::Document cmdToLog(cmdObj, mmb::Document::kInPlaceDisabled); - redactForLogging(&cmdToLog); - BSONObjBuilder bob; - cmdToLog.writeTo(&bob); - return bob.obj(); -} - static Status _checkAuthorizationImpl(Command* c, OperationContext* opCtx, const OpMsgRequest& request) { |