diff options
author | Spencer T Brody <spencer@mongodb.com> | 2016-07-27 19:15:39 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2016-07-27 19:23:00 -0400 |
commit | cb494c749a04ef677c6ffbb6cd77458efeb46c25 (patch) | |
tree | 844ecc5fd56de3cafaab15906472c74d1f483b7b /src | |
parent | 8921bd532db423bc50e65975663a4438e86d3fd8 (diff) | |
download | mongo-cb494c749a04ef677c6ffbb6cd77458efeb46c25.tar.gz |
Revert "SERVER-24780 Create audit log entry for setParameter command"
This reverts commit a6fcab0cf4cad4bfee1d65ca2b9bfe0b69970a8f.
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/audit.cpp | 3 | ||||
-rw-r--r-- | src/mongo/db/audit.h | 5 | ||||
-rw-r--r-- | src/mongo/db/commands/parameters.cpp | 2 |
3 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/db/audit.cpp b/src/mongo/db/audit.cpp index 7e6d438acf5..715e9023c15 100644 --- a/src/mongo/db/audit.cpp +++ b/src/mongo/db/audit.cpp @@ -178,9 +178,6 @@ void logAuthentication(ClientBasic* client, const BSONObj& keyPattern, bool unique) MONGO_AUDIT_STUB - void logSetParameter(ClientBasic* client, - const std::map<std::string, BSONElement>& parametersToSet) MONGO_AUDIT_STUB - void writeImpersonatedUsersToMetadata(OperationContext* txn, BSONObjBuilder* metadata) MONGO_AUDIT_STUB diff --git a/src/mongo/db/audit.h b/src/mongo/db/audit.h index 7af615ff5e4..54c07aa1d77 100644 --- a/src/mongo/db/audit.h +++ b/src/mongo/db/audit.h @@ -299,11 +299,6 @@ void logRemoveShard(ClientBasic* client, StringData shardname); */ void logShardCollection(ClientBasic* client, StringData ns, const BSONObj& keyPattern, bool unique); -/** - * Logs the result of a setParameter command. - */ -void logSetParameter(ClientBasic* client, - const std::map<std::string, BSONElement>& parametersToSet); /* * Appends an array of user/db pairs and an array of role/db pairs diff --git a/src/mongo/db/commands/parameters.cpp b/src/mongo/db/commands/parameters.cpp index 5ba2f9f0781..1d2b49c8b53 100644 --- a/src/mongo/db/commands/parameters.cpp +++ b/src/mongo/db/commands/parameters.cpp @@ -37,7 +37,6 @@ #include "mongo/client/replica_set_monitor.h" #include "mongo/client/sasl_client_authenticate.h" #include "mongo/config.h" -#include "mongo/db/audit.h" #include "mongo/db/auth/authorization_manager.h" #include "mongo/db/auth/internal_user_auth.h" #include "mongo/db/commands.h" @@ -233,7 +232,6 @@ public: return false; } - audit::logSetParameter(ClientBasic::getCurrent(), parametersToSet); return true; } } cmdSet; |