From 9b3fc54ceb6d1066e423f7c562c22de2f5c6480e Mon Sep 17 00:00:00 2001 From: Judah Schvimer Date: Fri, 27 May 2016 10:11:21 -0400 Subject: SERVER-23698 Removed ability to run replSetInitiate if not started as a replica set node --- src/mongo/db/repl/replset_commands.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/mongo/db/repl/replset_commands.cpp') diff --git a/src/mongo/db/repl/replset_commands.cpp b/src/mongo/db/repl/replset_commands.cpp index e12f0405751..70aaa8b7b6d 100644 --- a/src/mongo/db/repl/replset_commands.cpp +++ b/src/mongo/db/repl/replset_commands.cpp @@ -354,15 +354,9 @@ public: std::string replSetString = ReplicationCoordinator::get(txn)->getSettings().getReplSetString(); if (replSetString.empty()) { - if (serverGlobalParams.clusterRole == ClusterRole::ConfigServer) { - return appendCommandStatus(result, - ReplicationCoordinator::get(txn) - ->processReplSetInitiate(txn, configObj, &result)); - } return appendCommandStatus(result, Status(ErrorCodes::NoReplicationEnabled, - "This node was not started with the replSet " - "option")); + "This node was not started with the replSet option")); } if (configObj.isEmpty()) { -- cgit v1.2.1