diff options
Diffstat (limited to 'src/mongo/db/auth')
-rw-r--r-- | src/mongo/db/auth/auth_op_observer.h | 5 |
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 |