diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2018-04-25 11:28:40 -0400 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2018-04-25 15:45:49 -0400 |
commit | c50a57061af31f92c1c6aab09b1417ab127fed0c (patch) | |
tree | 488537b275059c8efd0292fd14e899b892868619 /src/mongo/db/audit.h | |
parent | 2deac715b6345a8103acc1da6187f77e65843019 (diff) | |
download | mongo-c50a57061af31f92c1c6aab09b1417ab127fed0c.tar.gz |
SERVER-34653 refactor audit's parseNs(..) to ns()
Diffstat (limited to 'src/mongo/db/audit.h')
-rw-r--r-- | src/mongo/db/audit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/audit.h b/src/mongo/db/audit.h index d05ed79b8c9..be20849545a 100644 --- a/src/mongo/db/audit.h +++ b/src/mongo/db/audit.h @@ -61,7 +61,7 @@ class CommandInterface { public: virtual ~CommandInterface() = default; virtual void redactForLogging(mutablebson::Document* cmdObj) const = 0; - virtual std::string parseNs(const std::string& dbname, const BSONObj& cmdObj) const = 0; + virtual NamespaceString ns() const = 0; }; /** @@ -84,7 +84,7 @@ void logAuthentication(Client* client, */ void logCommandAuthzCheck(Client* client, const OpMsgRequest& cmdObj, - CommandInterface* command, + const CommandInterface& command, ErrorCodes::Error result); /** |