summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2017-12-01 16:40:20 -0500
committerBilly Donahue <billy.donahue@mongodb.com>2017-12-01 16:40:20 -0500
commitb48791ed22de839480ef6ab558692bb19bdbcd3e (patch)
tree9e5671d4d53725649e661e7a6e6c74d4bb09c5d7
parent7dc61c0f0c0160ad6cba831a0e12bef501ef3ad5 (diff)
downloadmongo-b48791ed22de839480ef6ab558692bb19bdbcd3e.tar.gz
Trivial lint fix of 7dc61c0f0c0160ad6cba831a0e12bef501ef3ad5
-rw-r--r--src/mongo/db/repl/repl_set_config.cpp4
-rw-r--r--src/mongo/db/repl/replication_coordinator_external_state_impl.cpp7
2 files changed, 5 insertions, 6 deletions
diff --git a/src/mongo/db/repl/repl_set_config.cpp b/src/mongo/db/repl/repl_set_config.cpp
index 03619b1a859..eea451c0d81 100644
--- a/src/mongo/db/repl/repl_set_config.cpp
+++ b/src/mongo/db/repl/repl_set_config.cpp
@@ -708,8 +708,8 @@ StatusWith<ReplSetTagPattern> ReplSetConfig::findCustomWriteMode(StringData patt
void ReplSetConfig::_calculateMajorities() {
const int voters =
std::count_if(begin(_members), end(_members), [](const auto& x) { return x.isVoter(); });
- const int arbiters = std::count_if(
- begin(_members), end(_members), [](const auto& x) { return x.isArbiter(); });
+ const int arbiters =
+ std::count_if(begin(_members), end(_members), [](const auto& x) { return x.isArbiter(); });
_totalVotingMembers = voters;
_majorityVoteCount = voters / 2 + 1;
_writeMajority = std::min(_majorityVoteCount, voters - arbiters);
diff --git a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
index cd822f9fb0c..8203dd37aea 100644
--- a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
@@ -242,10 +242,9 @@ void ReplicationCoordinatorExternalStateImpl::startSteadyStateReplication(
_applierThread->startup();
log() << "Starting replication reporter thread";
invariant(!_syncSourceFeedbackThread);
- _syncSourceFeedbackThread = stdx::make_unique<stdx::thread>(
- [this, replCoord] {
- _syncSourceFeedback.run(_taskExecutor.get(), _bgSync.get(), replCoord);
- });
+ _syncSourceFeedbackThread = stdx::make_unique<stdx::thread>([this, replCoord] {
+ _syncSourceFeedback.run(_taskExecutor.get(), _bgSync.get(), replCoord);
+ });
}
void ReplicationCoordinatorExternalStateImpl::stopDataReplication(OperationContext* opCtx) {