summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/server_status.cpp
diff options
context:
space:
mode:
authorMisha Tyulenev <misha@mongodb.com>2017-10-26 18:34:38 -0400
committerMisha Tyulenev <misha@mongodb.com>2017-10-26 18:37:04 -0400
commit54f044558c0845adcc6b51c2351e8382a3e9bbd7 (patch)
tree298fe9462d1e77ae5eec6d5672bb047fb5441577 /src/mongo/db/commands/server_status.cpp
parent260fd0c76599520d9d733874753a94a2db763538 (diff)
downloadmongo-54f044558c0845adcc6b51c2351e8382a3e9bbd7.tar.gz
SERVER-31613 disallow afterClusterTime on some commands
Diffstat (limited to 'src/mongo/db/commands/server_status.cpp')
-rw-r--r--src/mongo/db/commands/server_status.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/commands/server_status.cpp b/src/mongo/db/commands/server_status.cpp
index 546944e5dc7..b3946ccbd12 100644
--- a/src/mongo/db/commands/server_status.cpp
+++ b/src/mongo/db/commands/server_status.cpp
@@ -75,7 +75,9 @@ public:
virtual bool slaveOk() const {
return true;
}
-
+ virtual bool allowsAfterClusterTime(const BSONObj& cmdObj) const override {
+ return false;
+ }
virtual void help(stringstream& help) const {
help << "returns lots of administrative server statistics";
}