diff options
Diffstat (limited to 'src/mongo/db/repl/replset_commands.cpp')
-rw-r--r-- | src/mongo/db/repl/replset_commands.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
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()) { |