...
BugZero found this defect 2889 days ago.
Specifically _addUncommitedRecordId_inlock has a commented-out invariant and _dealtWithCappedId has an invariant that checks the address of a RecordId in a std::list which doesn't make much sense. Instead check that the RecordId is normal.
xgen-internal-githook commented on Sat, 29 Apr 2017 00:51:40 +0000: Author: {u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'} Message: SERVER-28038 Improve invariants in WiredTigerRecordStore for capped visibility (cherry picked from commit 602a80c2b9745234daebb21dbdd81a456713cf33) Branch: v3.4 https://github.com/mongodb/mongo/commit/ac9457b4a5235a5f1f257721500dbb89fd6935c1 xgen-internal-githook commented on Wed, 12 Apr 2017 22:06:28 +0000: Author: {u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'} Message: SERVER-28038 Improve invariants in WiredTigerRecordStore for capped visibility (cherry picked from commit 602a80c2b9745234daebb21dbdd81a456713cf33) Branch: v3.2 https://github.com/mongodb/mongo/commit/819808b3d6ea8d01be58a064da3402199568e568 xgen-internal-githook commented on Tue, 28 Feb 2017 14:34:27 +0000: Author: {u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'} Message: SERVER-28038 Improve invariants in WiredTigerRecordStore for capped visibility Branch: master https://github.com/mongodb/mongo/commit/602a80c2b9745234daebb21dbdd81a456713cf33