diff options
author | Benety Goh <benety@mongodb.com> | 2014-11-10 14:34:17 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-11-12 14:24:22 -0500 |
commit | e7091e53396d7c9ea0b9a74af253a68ac0c0d234 (patch) | |
tree | a7f7f76bbad1d2f39742bd90ef6bb595ef726f21 /src/mongo/db/commands.h | |
parent | 525c5407c270b2e9050be9dd78b14dc7cab69eae (diff) | |
download | mongo-e7091e53396d7c9ea0b9a74af253a68ac0c0d234.tar.gz |
SERVER-14507 redact command parameters for LOG(2)
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r-- | src/mongo/db/commands.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index f71ed50d520..15aed1bcaff 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -175,6 +175,12 @@ namespace mutablebson { */ virtual void redactForLogging(mutablebson::Document* cmdObj); + /** + * Returns a copy of "cmdObj" in a form suitable for writing to logs. + * Uses redactForLogging() to transform "cmdObj". + */ + BSONObj getRedactedCopyForLogging(const BSONObj& cmdObj); + /* Return true if a replica set secondary should go into "recovering" (unreadable) state while running this command. */ |