diff options
author | matt dannenberg <matt.dannenberg@10gen.com> | 2013-10-09 17:05:34 -0400 |
---|---|---|
committer | matt dannenberg <matt.dannenberg@10gen.com> | 2013-11-05 12:39:00 -0500 |
commit | 3d97d00c3a94283241210c0abc27eb0039093ae0 (patch) | |
tree | 8371698db88c5c50162b2376c463cb0b96453d24 /src/mongo/db/audit.h | |
parent | c18dfd852cb222a61f6393ebac6e6edf05c52386 (diff) | |
download | mongo-3d97d00c3a94283241210c0abc27eb0039093ae0.tar.gz |
SERVER-1891 Hookup audit logging for sharding events.
Diffstat (limited to 'src/mongo/db/audit.h')
-rw-r--r-- | src/mongo/db/audit.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mongo/db/audit.h b/src/mongo/db/audit.h index 2012f14d865..1b131df23b5 100644 --- a/src/mongo/db/audit.h +++ b/src/mongo/db/audit.h @@ -326,5 +326,34 @@ namespace audit { void logRenameCollection(ClientBasic* client, const StringData& source, const StringData& target); + + /** + * Logs the result of a enableSharding command. + */ + void logEnableSharding(ClientBasic* client, + const StringData& dbname); + + /** + * Logs the result of a addShard command. + */ + void logAddShard(ClientBasic* client, + const StringData& name, + const std::string& servers, + long long maxsize); + + /** + * Logs the result of a removeShard command. + */ + void logRemoveShard(ClientBasic* client, + const StringData& shardname); + + /** + * Logs the result of a shardCollection command. + */ + void logShardCollection(ClientBasic* client, + const StringData& ns, + const BSONObj& keyPattern, + bool unique); + } // namespace audit } // namespace mongo |