summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAllison Chang <allison.chang@10gen.com>2017-06-06 12:13:04 -0400
committerAllison Chang <allison.chang@10gen.com>2017-06-06 12:13:41 -0400
commita0c20cd74f761789a5cb9dfaa8d390a971bbba2c (patch)
tree45e3f48315a0693c4263befb972af3d131dd2f77 /src
parent684cfd1ecc7de52f3f8d8da5d6df66b3856c4bdc (diff)
downloadmongo-a0c20cd74f761789a5cb9dfaa8d390a971bbba2c.tar.gz
SERVER-29037: Updated logging in replication coordinator to show new replSetConfig
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/repl/replication_coordinator_impl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.cpp b/src/mongo/db/repl/replication_coordinator_impl.cpp
index 222d8b1c507..1dbb34349bf 100644
--- a/src/mongo/db/repl/replication_coordinator_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_impl.cpp
@@ -2069,7 +2069,8 @@ Status ReplicationCoordinatorImpl::processHeartbeat(const ReplSetHeartbeatArgs&
Status ReplicationCoordinatorImpl::processReplSetReconfig(OperationContext* opCtx,
const ReplSetReconfigArgs& args,
BSONObjBuilder* resultObj) {
- log() << "replSetReconfig admin command received from client";
+ log() << "replSetReconfig admin command received from client; new config: "
+ << args.newConfigObj;
stdx::unique_lock<stdx::mutex> lk(_mutex);
@@ -2121,6 +2122,7 @@ Status ReplicationCoordinatorImpl::processReplSetReconfig(OperationContext* opCt
if (args.force) {
newConfigObj = incrementConfigVersionByRandom(newConfigObj);
}
+
Status status = newConfig.initialize(
newConfigObj, oldConfig.getProtocolVersion() == 1, oldConfig.getReplicaSetId());
if (!status.isOK()) {