summaryrefslogtreecommitdiff
path: root/src/mongo/s
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-07-20 15:29:47 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-07-24 09:45:17 -0400
commit75abf2461a780d9fa705779a2ffddb1fe1f773b7 (patch)
tree4ae060822af65c003d5c873627b93d240034bb5b /src/mongo/s
parent0f5a95b31d59a15d66be97ed1ac2a8cd89b1b6cb (diff)
downloadmongo-75abf2461a780d9fa705779a2ffddb1fe1f773b7.tar.gz
SERVER-30275 Get rid of the apply_ops_cmd_common library
Diffstat (limited to 'src/mongo/s')
-rw-r--r--src/mongo/s/commands/SConscript2
-rw-r--r--src/mongo/s/commands/cluster_apply_ops_cmd.cpp69
2 files changed, 0 insertions, 71 deletions
diff --git a/src/mongo/s/commands/SConscript b/src/mongo/s/commands/SConscript
index eceafa93e4f..75db97fa257 100644
--- a/src/mongo/s/commands/SConscript
+++ b/src/mongo/s/commands/SConscript
@@ -30,7 +30,6 @@ env.Library(
'cluster_add_shard_cmd.cpp',
'cluster_add_shard_to_zone_cmd.cpp',
'cluster_aggregate.cpp',
- 'cluster_apply_ops_cmd.cpp',
'cluster_available_query_options_cmd.cpp',
'cluster_compact_cmd.cpp',
'cluster_control_balancer_cmd.cpp',
@@ -84,7 +83,6 @@ env.Library(
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/auth/authmongos',
- '$BUILD_DIR/mongo/db/commands/apply_ops_cmd_common',
'$BUILD_DIR/mongo/db/commands/killcursors_common',
'$BUILD_DIR/mongo/db/ftdc/ftdc_server',
'$BUILD_DIR/mongo/db/commands/write_commands_common',
diff --git a/src/mongo/s/commands/cluster_apply_ops_cmd.cpp b/src/mongo/s/commands/cluster_apply_ops_cmd.cpp
deleted file mode 100644
index f2f67b37c3a..00000000000
--- a/src/mongo/s/commands/cluster_apply_ops_cmd.cpp
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- * Copyright (C) 2015 MongoDB Inc.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- * As a special exception, the copyright holders give permission to link the
- * code of portions of this program with the OpenSSL library under certain
- * conditions as described in each individual source file and distribute
- * linked combinations including the program with the OpenSSL library. You
- * must comply with the GNU Affero General Public License in all respects for
- * all of the code used other than as permitted herein. If you modify file(s)
- * with this exception, you may extend this exception to your version of the
- * file(s), but you are not obligated to do so. If you do not wish to do so,
- * delete this exception statement from your version. If you delete this
- * exception statement from all source files in the program, then also delete
- * it in the license file.
- */
-
-#include "mongo/platform/basic.h"
-
-#include "mongo/db/commands.h"
-#include "mongo/db/commands/apply_ops_cmd_common.h"
-
-namespace mongo {
-namespace {
-
-class ApplyOpsCmd : public BasicCommand {
-public:
- ApplyOpsCmd() : BasicCommand("applyOps") {}
-
- bool slaveOk() const override {
- return true;
- }
-
- bool adminOnly() const override {
- return false;
- }
-
- bool supportsWriteConcern(const BSONObj& cmd) const override {
- return true;
- }
-
- Status checkAuthForOperation(OperationContext* opCtx,
- const std::string& dbname,
- const BSONObj& cmdObj) override {
- return checkAuthForApplyOpsCommand(opCtx, dbname, cmdObj);
- }
-
- bool run(OperationContext* opCtx,
- const std::string& dbName,
- const BSONObj& cmdObj,
- BSONObjBuilder& result) override {
- uasserted(ErrorCodes::CommandNotSupported, "applyOps not allowed through mongos");
- }
-
-} clusterApplyOpsCmd;
-
-} // namespace
-} // namespace mongo