...
BugZero found this defect 2755 days ago.
In bgsync, due to shutdown, we need to check the state after locking whenever it's going to change any state that the destruct won't clean up. This includes the construction of _syncSourceResolver, _oplogFetcher and _rollback.
xgen-internal-githook commented on Wed, 3 May 2017 00:11:26 +0000: Author: {u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'} Message: SERVER-28490 Check the state after acquiring the lock in bgsync. (cherry picked from commit b077e090642dbb50ea235e2b26af90399896eb04) Branch: v3.4 https://github.com/mongodb/mongo/commit/f55883b2c7e530a669e9c93ae3a41654ab4dae4f xgen-internal-githook commented on Sat, 22 Apr 2017 03:05:35 +0000: Author: {u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'} Message: SERVER-28490 Check the state after acquiring the lock in bgsync. Branch: master https://github.com/mongodb/mongo/commit/b077e090642dbb50ea235e2b26af90399896eb04