summaryrefslogtreecommitdiff
path: root/src/mongo/db/audit.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2015-01-09 09:03:11 -0500
committerEliot Horowitz <eliot@10gen.com>2015-01-09 09:17:13 -0500
commit5f3d618cc212c5d364568e56335e93e7e6ad4937 (patch)
treecdb714503fb7e40f0b2c5c9cbad42749edc62a47 /src/mongo/db/audit.h
parent2ca0b90c51864e5d71abd018242cdb3b64dda66b (diff)
downloadmongo-5f3d618cc212c5d364568e56335e93e7e6ad4937.tar.gz
logCommandAuthzCheck doesn't need to allocate a NamespaceString when not needed
Diffstat (limited to 'src/mongo/db/audit.h')
-rw-r--r--src/mongo/db/audit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/audit.h b/src/mongo/db/audit.h
index 2fa742c5011..d43ff9768f4 100644
--- a/src/mongo/db/audit.h
+++ b/src/mongo/db/audit.h
@@ -74,7 +74,7 @@ namespace audit {
*/
void logCommandAuthzCheck(
ClientBasic* client,
- const NamespaceString& ns,
+ const std::string& dbname,
const BSONObj& cmdObj,
Command* command,
ErrorCodes::Error result);