[SERVER-26168] repairDatabaseAndCheckVersion uses AutoGetCollectionForRead Created: 19/Sep/16  Updated: 19/Nov/16  Resolved: 20/Sep/16

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 3.3.12
Fix Version/s: 3.3.14

Type: Bug Priority: Minor - P4
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2016-10-10
Participants:

 Description   

The repairDatabaseAndCheckVersion call, which runs at server startup is using AutoGetCollectionForRead, which performs sharding and replication snapshot checks. Doing this when the server is starting, while possibly not harmful is not correct.

AutoGetCollection should be sufficient to use given that the global lock is already held in MODE_X.



 Comments   
Comment by Githook User [ 20/Sep/16 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-26168 Do not use AutoGetCollectionForRead during repairDatabaseAndCheckVersion
Branch: master
https://github.com/mongodb/mongo/commit/64fb038fbcc4da22d82e4b3b617b81cd53d11142

Generated at Thu Feb 08 04:11:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.