summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/auth_op_observer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/auth/auth_op_observer.h')
-rw-r--r--src/mongo/db/auth/auth_op_observer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/auth/auth_op_observer.h b/src/mongo/db/auth/auth_op_observer.h
index 66ddf72732e..5920146860e 100644
--- a/src/mongo/db/auth/auth_op_observer.h
+++ b/src/mongo/db/auth/auth_op_observer.h
@@ -182,6 +182,11 @@ public:
void onMajorityCommitPointUpdate(ServiceContext* service,
const repl::OpTime& newCommitPoint) final {}
+
+ // Contains the fields of the document that are in the collection's shard key, and "_id".
+ static BSONObj getDocumentKey(OperationContext* opCtx,
+ NamespaceString const& nss,
+ BSONObj const& doc);
};
} // namespace mongo