...
BugZero found this defect 2702 days ago.
The follow paragraph is no longer true and should be removed. We should link this ticket to the SERVER ticket in which this assumption changed. https://github.com/mongodb/mongo/blob/878e55a460de02de2f0171d3e9e1bcfc12bb80cc/src/mongo/db/repl/oplog.cpp#L148 oplog.cpp /** * Allocates an optime for a new entry in the oplog, and updates the replication coordinator to * reflect that new optime. Returns the new optime and the correct value of the "h" field for * the new oplog entry. * * NOTE: From the time this function returns to the time that the new oplog entry is written * to the storage system, all errors must be considered fatal. This is because the this * function registers the new optime with the storage system and the replication coordinator, * and provides no facility to revert those registrations on rollback. */ void getNextOpTime(OperationContext* opCtx, Collection* oplog, ReplicationCoordinator* replCoord, ReplicationCoordinator::Mode replicationMode, unsigned count, OplogSlot* slotsOut) {
xgen-internal-githook commented on Fri, 21 Jul 2017 12:44:31 +0000: Author: {u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'} Message: SERVER-30240 Remove obsolete comment in oplog.cpp. This comment was obsoleted by SERVER-15192. Branch: master https://github.com/mongodb/mongo/commit/405b07f373d900e810965a838f1c4bbaf8b16dcb