summaryrefslogtreecommitdiff
path: root/src/mongo/db/audit.h
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-04-25 11:28:40 -0400
committerBilly Donahue <billy.donahue@mongodb.com>2018-04-25 15:45:49 -0400
commitc50a57061af31f92c1c6aab09b1417ab127fed0c (patch)
tree488537b275059c8efd0292fd14e899b892868619 /src/mongo/db/audit.h
parent2deac715b6345a8103acc1da6187f77e65843019 (diff)
downloadmongo-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.h4
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);
/**