diff options
author | Jennifer Peshansky <jennifer.peshansky@mongodb.com> | 2022-11-03 16:13:20 +0000 |
---|---|---|
committer | Jennifer Peshansky <jennifer.peshansky@mongodb.com> | 2022-11-03 16:13:20 +0000 |
commit | e74d2910bbe76790ad131d53fee277829cd95982 (patch) | |
tree | cabe148764529c9623652374fbc36323a550cd44 /src/mongo/s/commands/cluster_write_cmd.h | |
parent | 280145e9940729480bb8a35453d4056afac87641 (diff) | |
parent | ba467f46cc1bc49965e1d72b541eff0cf1d7b22e (diff) | |
download | mongo-jenniferpeshansky/SERVER-70854.tar.gz |
Merge branch 'master' into jenniferpeshansky/SERVER-70854jenniferpeshansky/SERVER-70854
Diffstat (limited to 'src/mongo/s/commands/cluster_write_cmd.h')
-rw-r--r-- | src/mongo/s/commands/cluster_write_cmd.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_write_cmd.h b/src/mongo/s/commands/cluster_write_cmd.h index c3632b5246d..2b0bb507423 100644 --- a/src/mongo/s/commands/cluster_write_cmd.h +++ b/src/mongo/s/commands/cluster_write_cmd.h @@ -102,6 +102,7 @@ public: private: virtual void preRunImplHook(OperationContext* opCtx) const = 0; + virtual void preExplainImplHook(OperationContext* opCtx) const = 0; virtual void doCheckAuthorizationHook(AuthorizationSession* authzSession) const = 0; bool runImpl(OperationContext* opCtx, @@ -162,6 +163,10 @@ private: Impl::checkCanRunHere(opCtx); } + void preExplainImplHook(OperationContext* opCtx) const final { + Impl::checkCanExplainHere(opCtx); + } + void doCheckAuthorizationHook(AuthorizationSession* authzSession) const final { Impl::doCheckAuthorization( authzSession, getBypass(), getBatchedRequest().getInsertRequest()); @@ -208,6 +213,10 @@ private: Impl::checkCanRunHere(opCtx); } + void preExplainImplHook(OperationContext* opCtx) const final { + Impl::checkCanExplainHere(opCtx); + } + void doCheckAuthorizationHook(AuthorizationSession* authzSession) const final { Impl::doCheckAuthorization( authzSession, getBypass(), getBatchedRequest().getUpdateRequest()); @@ -260,6 +269,10 @@ private: Impl::checkCanRunHere(opCtx); } + void preExplainImplHook(OperationContext* opCtx) const final { + Impl::checkCanExplainHere(opCtx); + } + void doCheckAuthorizationHook(AuthorizationSession* authzSession) const final { Impl::doCheckAuthorization( authzSession, getBypass(), getBatchedRequest().getDeleteRequest()); |