summaryrefslogtreecommitdiff
path: root/src/mongo/db/audit.h
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2013-10-09 11:40:24 -0400
committermatt dannenberg <matt.dannenberg@10gen.com>2013-10-09 11:58:21 -0400
commitd29d8008c20143e52ed11890d8728ed19e4f56eb (patch)
tree61fcf38cd02abef1ad3ca8be4eb32bdae6f9d736 /src/mongo/db/audit.h
parent42b1dfce39fc77156a6bbad531893d6deee6e049 (diff)
downloadmongo-d29d8008c20143e52ed11890d8728ed19e4f56eb.tar.gz
SERVER-1891 Add audit logging hook for renameCollection
Diffstat (limited to 'src/mongo/db/audit.h')
-rw-r--r--src/mongo/db/audit.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/audit.h b/src/mongo/db/audit.h
index ae2a14c9455..ad467ae1d89 100644
--- a/src/mongo/db/audit.h
+++ b/src/mongo/db/audit.h
@@ -319,5 +319,12 @@ namespace audit {
*/
void logDropDatabase(ClientBasic* client,
const StringData& dbname);
+
+ /**
+ * Logs a collection rename event.
+ */
+ void logRenameCollection(ClientBasic* client,
+ const StringData& source,
+ const StringData& target);
} // namespace audit
} // namespace mongo