summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2015-08-17 10:07:42 -0400
committerEric Milkie <milkie@10gen.com>2015-08-17 10:07:42 -0400
commita0711c53f72720bf17e7d8e7d0d9b2a6b8bb6045 (patch)
tree0d5ab553ba6980b83f59acdee662ff98877c5728 /src
parente4cecb7d0dcf61cf16cba96414f99fc5ca097727 (diff)
downloadmongo-a0711c53f72720bf17e7d8e7d0d9b2a6b8bb6045.tar.gz
SERVER-19833 fix compilation
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/repl/replication_coordinator_impl.cpp32
1 files changed, 15 insertions, 17 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.cpp b/src/mongo/db/repl/replication_coordinator_impl.cpp
index c9c15271c57..08080aa478e 100644
--- a/src/mongo/db/repl/replication_coordinator_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_impl.cpp
@@ -1500,25 +1500,23 @@ bool ReplicationCoordinatorImpl::prepareReplSetUpdatePositionCommand(BSONObjBuil
cmdBuilder->append("replSetUpdatePosition", 1);
// create an array containing objects each member connected to us and for ourself
BSONArrayBuilder arrayBuilder(cmdBuilder->subarrayStart("optimes"));
- const Date_t now = _replExecutor.now();
- {
- for (SlaveInfoVector::iterator itr = _slaveInfo.begin(); itr != _slaveInfo.end(); ++itr) {
- if (itr->opTime.isNull()) {
- // Don't include info on members we haven't heard from yet.
- continue;
- }
- // Don't include members we think are down.
- if (!itr->self && itr->down) {
- continue;
- }
-
- BSONObjBuilder entry(arrayBuilder.subobjStart());
- entry.append("_id", itr->rid);
- entry.append("optime", itr->opTime.getTimestamp());
- entry.append("memberId", itr->memberId);
- entry.append("cfgver", _rsConfig.getConfigVersion());
+ for (SlaveInfoVector::iterator itr = _slaveInfo.begin(); itr != _slaveInfo.end(); ++itr) {
+ if (itr->opTime.isNull()) {
+ // Don't include info on members we haven't heard from yet.
+ continue;
+ }
+ // Don't include members we think are down.
+ if (!itr->self && itr->down) {
+ continue;
}
+
+ BSONObjBuilder entry(arrayBuilder.subobjStart());
+ entry.append("_id", itr->rid);
+ entry.append("optime", itr->opTime.getTimestamp());
+ entry.append("memberId", itr->memberId);
+ entry.append("cfgver", _rsConfig.getConfigVersion());
}
+
return true;
}