diff options
author | Spencer T Brody <spencer@mongodb.com> | 2014-09-11 14:10:18 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2014-09-14 18:29:20 -0400 |
commit | fdfcb2b6922bcd64982659f82f1a47cc31de7929 (patch) | |
tree | 84394a01e6332d5b26ec5a100eaed982a4ae76c2 /src/mongo/db/commands/cleanup_orphaned_cmd.cpp | |
parent | 93f961084fa9c9969b0a04445d364ea7056d8efc (diff) | |
download | mongo-fdfcb2b6922bcd64982659f82f1a47cc31de7929.tar.gz |
SERVER-14567 Implement checkIfWriteConcernCanBeSatisfied in ReplicationCoordinatorImpl
Diffstat (limited to 'src/mongo/db/commands/cleanup_orphaned_cmd.cpp')
-rw-r--r-- | src/mongo/db/commands/cleanup_orphaned_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/cleanup_orphaned_cmd.cpp b/src/mongo/db/commands/cleanup_orphaned_cmd.cpp index 83dbea1166b..fe468c0b166 100644 --- a/src/mongo/db/commands/cleanup_orphaned_cmd.cpp +++ b/src/mongo/db/commands/cleanup_orphaned_cmd.cpp @@ -248,7 +248,7 @@ namespace mongo { repl::ReplicationCoordinator* replCoordinator = repl::getGlobalReplicationCoordinator(); Status status = replCoordinator->checkIfWriteConcernCanBeSatisfied(writeConcern); - if (!status.isOK()) { + if (!status.isOK() && status != ErrorCodes::NoReplicationEnabled) { return appendCommandStatus(result, status); } } |