From 658f0bce4379fc0334a53c4381d57b8b7c7d53b7 Mon Sep 17 00:00:00 2001 From: Randolph Tan Date: Fri, 10 Oct 2014 14:11:52 -0400 Subject: SERVER-15591 enforce secondaryThrottle during moveChunk commit --- src/mongo/db/commands/cleanup_orphaned_cmd.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mongo/db/commands/cleanup_orphaned_cmd.cpp') diff --git a/src/mongo/db/commands/cleanup_orphaned_cmd.cpp b/src/mongo/db/commands/cleanup_orphaned_cmd.cpp index fe468c0b166..96093bdeca1 100644 --- a/src/mongo/db/commands/cleanup_orphaned_cmd.cpp +++ b/src/mongo/db/commands/cleanup_orphaned_cmd.cpp @@ -248,6 +248,15 @@ namespace mongo { repl::ReplicationCoordinator* replCoordinator = repl::getGlobalReplicationCoordinator(); Status status = replCoordinator->checkIfWriteConcernCanBeSatisfied(writeConcern); + + if (replCoordinator->getReplicationMode() == + repl::ReplicationCoordinator::modeMasterSlave && + writeConcern.shouldWaitForOtherNodes()) { + warning() << "cleanupOrphaned cannot check if write concern setting " + << writeConcern.toBSON() + << " can be enforced in a master slave configuration"; + } + if (!status.isOK() && status != ErrorCodes::NoReplicationEnabled) { return appendCommandStatus(result, status); } -- cgit v1.2.1