summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/compact.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-01-07 15:01:58 -0500
committerSpencer T Brody <spencer@mongodb.com>2015-01-12 11:42:03 -0500
commitc518ce7ff2255004e299c802625f2f7c65e048fd (patch)
tree7b5f96f064d659e521ab0067c39d1c7fc5a408b4 /src/mongo/db/commands/compact.cpp
parentcc1283f11b689850a66b935b9242a058d6d4ff2e (diff)
downloadmongo-c518ce7ff2255004e299c802625f2f7c65e048fd.tar.gz
SERVER-16764 Give methods and member variables consistent names in repl Coordinator classes
Diffstat (limited to 'src/mongo/db/commands/compact.cpp')
-rw-r--r--src/mongo/db/commands/compact.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/compact.cpp b/src/mongo/db/commands/compact.cpp
index 00d754b6b99..62007df42bc 100644
--- a/src/mongo/db/commands/compact.cpp
+++ b/src/mongo/db/commands/compact.cpp
@@ -87,7 +87,7 @@ namespace mongo {
const std::string nsToCompact = parseNsCollectionRequired(db, cmdObj);
repl::ReplicationCoordinator* replCoord = repl::getGlobalReplicationCoordinator();
- if (replCoord->getCurrentMemberState().primary() && !cmdObj["force"].trueValue()) {
+ if (replCoord->getMemberState().primary() && !cmdObj["force"].trueValue()) {
errmsg = "will not run compact on an active replica set primary as this is a slow blocking operation. use force:true to force";
return false;
}