diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2022-04-11 11:20:13 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-29 06:50:37 +0000 |
commit | 3e63636e66ced4aed6d1aaaafcdca7ae19cf96f2 (patch) | |
tree | 930ff9b35605d23d578933a45220f0fde6eff3be /src/mongo/db/repl/topology_coordinator.cpp | |
parent | f9e7b6d7de6270a5ed7bf79da40d31a78633ca2a (diff) | |
download | mongo-3e63636e66ced4aed6d1aaaafcdca7ae19cf96f2.tar.gz |
SERVER-65278 added clang-tidy v4 builder and fixed clang-tidy v4 issues.
Diffstat (limited to 'src/mongo/db/repl/topology_coordinator.cpp')
-rw-r--r-- | src/mongo/db/repl/topology_coordinator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/topology_coordinator.cpp b/src/mongo/db/repl/topology_coordinator.cpp index 327f0069593..0b91a57a59b 100644 --- a/src/mongo/db/repl/topology_coordinator.cpp +++ b/src/mongo/db/repl/topology_coordinator.cpp @@ -383,7 +383,7 @@ HostAndPort TopologyCoordinator::_chooseNearbySyncSource(Date_t now, return syncSource; } -const OpTime TopologyCoordinator::_getOldestSyncOpTime() const { +OpTime TopologyCoordinator::_getOldestSyncOpTime() const { OpTime oldestSyncOpTime = OpTime(); // Find primary's oplog time. We will reject sync candidates that are more than @@ -2376,7 +2376,7 @@ MemberData& TopologyCoordinator::_selfMemberData() { return _memberData[_selfMemberDataIndex()]; } -const int TopologyCoordinator::_selfMemberDataIndex() const { +int TopologyCoordinator::_selfMemberDataIndex() const { invariant(!_memberData.empty()); if (_selfIndex >= 0) return _selfIndex; |