diff options
author | Pavithra Vetriselvan <pavithra.vetriselvan@mongodb.com> | 2017-10-20 11:44:56 -0400 |
---|---|---|
committer | Pavithra Vetriselvan <pavithra.vetriselvan@mongodb.com> | 2017-10-23 14:29:14 -0400 |
commit | 04a7b956a32f5b1d6d3b169bb4e8ad829ac6e733 (patch) | |
tree | 0c95e8369629c336efd315e07ae3e2512d43bb2f /src | |
parent | bb4381df8195f86da18a9204d14d225e858b5118 (diff) | |
download | mongo-04a7b956a32f5b1d6d3b169bb4e8ad829ac6e733.tar.gz |
SERVER-31600 Remove unused updateCommitPoint_inlock() function
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_impl.cpp | 9 | ||||
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_impl.h | 7 |
2 files changed, 0 insertions, 16 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.cpp b/src/mongo/db/repl/replication_coordinator_impl.cpp index 2f4a4331218..391430f774a 100644 --- a/src/mongo/db/repl/replication_coordinator_impl.cpp +++ b/src/mongo/db/repl/replication_coordinator_impl.cpp @@ -3227,15 +3227,6 @@ void ReplicationCoordinatorImpl::_advanceCommitPoint_inlock(const OpTime& commit } } -void ReplicationCoordinatorImpl::_updateCommitPoint_inlock() { - // Update the stable timestamp - _setStableTimestampForStorage_inlock(); - - auto committedOpTime = _topCoord->getLastCommittedOpTime(); - // Notify waiters that the commit point moved. - _externalState->notifyOplogMetadataWaiters(committedOpTime); -} - OpTime ReplicationCoordinatorImpl::getLastCommittedOpTime() const { stdx::unique_lock<stdx::mutex> lk(_mutex); return _topCoord->getLastCommittedOpTime(); diff --git a/src/mongo/db/repl/replication_coordinator_impl.h b/src/mongo/db/repl/replication_coordinator_impl.h index f2d5bd12560..5fbce258696 100644 --- a/src/mongo/db/repl/replication_coordinator_impl.h +++ b/src/mongo/db/repl/replication_coordinator_impl.h @@ -950,13 +950,6 @@ private: void _advanceCommitPoint_inlock(const OpTime& committedOpTime); /** - * Helper for advanceCommitPoint and updateLastCommittedOpTime. Notifies external waiters - * waiting on oplog metadata changes (not read or write concerns) of a change in - * lastCommittedOpTime and updates our committed snapshot. - */ - void _updateCommitPoint_inlock(); - - /** * Scan the memberData and determine the highest last applied or last * durable optime present on a majority of servers; set _lastCommittedOpTime to this * new entry. Wake any threads waiting for replication that now have their |