diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-07-26 15:23:10 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-07-26 15:23:51 -0400 |
commit | 1febb4ceb0e59743b0a49af35db10c4c689aa130 (patch) | |
tree | 431445a395fd4fbd1e7c94bf1c4151bba714088d /src/mongo/db/audit.h | |
parent | 7daf57f28f564329e92b8779cf12845776b958b3 (diff) | |
download | mongo-1febb4ceb0e59743b0a49af35db10c4c689aa130.tar.gz |
SERVER-24615 Add support for OperationContext in EgressMetadataHook
Diffstat (limited to 'src/mongo/db/audit.h')
-rw-r--r-- | src/mongo/db/audit.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/audit.h b/src/mongo/db/audit.h index 4dc187da2b1..54c07aa1d77 100644 --- a/src/mongo/db/audit.h +++ b/src/mongo/db/audit.h @@ -44,6 +44,7 @@ class BSONObj; class ClientBasic; class Command; class NamespaceString; +class OperationContext; class ReplSetConfig; class StringData; class UserName; @@ -304,7 +305,7 @@ void logShardCollection(ClientBasic* client, StringData ns, const BSONObj& keyPa * to the provided metadata builder. The users and roles are extracted from the current client. * They are to be the impersonated users and roles for a Command run by an internal user. */ -void writeImpersonatedUsersToMetadata(BSONObjBuilder* metadataBob); +void writeImpersonatedUsersToMetadata(OperationContext* txn, BSONObjBuilder* metadataBob); /* * Looks for an 'impersonatedUsers' field. This field is used by mongos to |