summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/generic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/generic.cpp')
-rw-r--r--src/mongo/db/commands/generic.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/mongo/db/commands/generic.cpp b/src/mongo/db/commands/generic.cpp
index e157ff5a64a..9a4bf94a78b 100644
--- a/src/mongo/db/commands/generic.cpp
+++ b/src/mongo/db/commands/generic.cpp
@@ -38,7 +38,6 @@
#include "mongo/util/log.h"
#include "mongo/util/processinfo.h"
#include "mongo/util/ramlog.h"
-#include "mongo/util/version.h"
#include <sstream>
#include <string>
@@ -51,39 +50,6 @@ using std::string;
using std::stringstream;
using std::vector;
-class CmdBuildInfo : public BasicCommand {
-public:
- CmdBuildInfo() : BasicCommand("buildInfo", "buildinfo") {}
-
- AllowedOnSecondary secondaryAllowed(ServiceContext*) const override {
- return AllowedOnSecondary::kAlways;
- }
-
- virtual bool adminOnly() const {
- return false;
- }
- virtual bool supportsWriteConcern(const BSONObj& cmd) const override {
- return false;
- }
- virtual void addRequiredPrivileges(const std::string& dbname,
- const BSONObj& cmdObj,
- std::vector<Privilege>* out) const {} // No auth required
- std::string help() const override {
- return "get version #, etc.\n"
- "{ buildinfo:1 }";
- }
-
- bool run(OperationContext* opCtx,
- const std::string& dbname,
- const BSONObj& jsobj,
- BSONObjBuilder& result) {
- VersionInfoInterface::instance().appendBuildInfo(&result);
- appendStorageEngineList(&result);
- return true;
- }
-
-} cmdBuildInfo;
-
class PingCommand : public BasicCommand {
public:
PingCommand() : BasicCommand("ping") {}