diff options
author | Arun Banala <arun.banala@mongodb.com> | 2021-03-11 15:32:47 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-31 12:56:11 +0000 |
commit | c87f63d4682eaa7d2a7e223050027bc8dd24c810 (patch) | |
tree | e60a5ca39de2a38c36ed2dd1a6bd032460f7167c /src/mongo/db/commands.h | |
parent | 18f980cf6bd73d20edd0503c8d0e283c7d0e0ddf (diff) | |
download | mongo-c87f63d4682eaa7d2a7e223050027bc8dd24c810.tar.gz |
SERVER-54763 Allow users to run validateDBMetadata command on all database without privileges to 'internal' databases
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r-- | src/mongo/db/commands.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index 956033f0379..086f08ddda0 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -1171,6 +1171,10 @@ protected: return _request; } + const OpMsgRequest& unparsedRequest() const { + return _opMsgRequest; + } + private: static RequestType _parseRequest(OperationContext* opCtx, const Command* command, |