[SERVER-24664] Get rid of calls to ShardingState::getCollectionMetadata Created: 20/Jun/16 Updated: 25/Oct/18 Resolved: 20/Jul/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 3.3.11 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Kaloian Manassiev | Assignee: | Leon Zaruvinsky |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Sprint: | Sharding 16 (06/24/16), Sharding 17 (07/15/16), Sharding 18 (08/05/16) | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
The per-collection metadata is owned and managed through the CollectionShardingState class, which has one instance per sharded collection. All retrieval of collection metadata should go through this class so it can enforce proper locking rules and we should remove calls to ShardingState::getCollectionMetadata, which does not check for locks. |
| Comments |
| Comment by Githook User [ 20/Jul/16 ] |
|
Author: {u'username': u'leonz', u'name': u'Leon Zaruvinsky', u'email': u'leon@mongodb.com'}Message: |
| Comment by Githook User [ 22/Jun/16 ] |
|
Author: {u'username': u'leonz', u'name': u'Leon Zaruvinsky', u'email': u'leon@mongodb.com'}Message: |