[SERVER-25360] Don't include unneeded serverStatus command default sections on distlock manager calls Created: 29/Jul/16 Updated: 18/Aug/16 Resolved: 11/Aug/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Dianna Hohensee (Inactive) | Assignee: | Dianna Hohensee (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Sprint: | Sharding 2016-08-29 |
| Participants: |
| Description |
|
ReplSetDistLockManager (via DistLockCatalogImpl::getServerInfo) can make a lot of serverStatus calls, and all it needs is two fields, electionId and localTime. In the serverStatus command call in DistLockCatalogImpl::getServerInfo, explicitly state in the command not to include most/all default included fields. For example, it includes the "sharding" section on every call, which now also resports migration statuses. It's wasted work. |