diff options
author | Pavi Vetriselvan <pvselvan@umich.edu> | 2018-04-04 15:09:59 -0400 |
---|---|---|
committer | Pavi Vetriselvan <pvselvan@umich.edu> | 2018-04-04 15:09:59 -0400 |
commit | fd546c727b8492bf3841d85c2acefb277a792cdb (patch) | |
tree | 28983ab8749db79c88961f42f32d5f8b8f9bf497 /src | |
parent | e220ef56d0f21f0f447094a8d2fc01aba7c46dda (diff) | |
download | mongo-fd546c727b8492bf3841d85c2acefb277a792cdb.tar.gz |
SERVER-33774 make commitTxn, abortTxn, and prepareTransaction adminOnly
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/commands/txn_cmds.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mongo/db/commands/txn_cmds.cpp b/src/mongo/db/commands/txn_cmds.cpp index b91ae7ba42a..68088e6aca8 100644 --- a/src/mongo/db/commands/txn_cmds.cpp +++ b/src/mongo/db/commands/txn_cmds.cpp @@ -51,6 +51,10 @@ public: return AllowedOnSecondary::kAlways; } + virtual bool adminOnly() const { + return true; + } + bool supportsWriteConcern(const BSONObj& cmd) const override { return true; } @@ -96,6 +100,10 @@ public: return AllowedOnSecondary::kNever; } + virtual bool adminOnly() const { + return true; + } + bool supportsWriteConcern(const BSONObj& cmd) const override { return true; } @@ -152,6 +160,10 @@ public: return AllowedOnSecondary::kAlways; } + virtual bool adminOnly() const { + return true; + } + bool supportsWriteConcern(const BSONObj& cmd) const override { return true; } |