[SERVER-45557] DBClientCursor should call metadataReader once per batch Created: 14/Jan/20 Updated: 29/Oct/23 Resolved: 14/Jan/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.3 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Lingzhi Deng | Assignee: | Lingzhi Deng |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Repl 2020-01-27 |
| Participants: |
| Description |
|
Currently, when a DBClientCursor receives a response, it runs commandDataReceived. And as part of commandDataReceived, it calls parseCommandReplyMessage inside which _metadataReader is called once. After returning from parseCommandReplyMessage, DBClientCursor calls the metadataReader again. Therefore, the metadataReader ends up being called twice for each batch. It is safe to remove the call to metadataReader in commandDataReceived so that the metadataReader is only called once per batch. |
| Comments |
| Comment by Githook User [ 14/Jan/20 ] |
|
Author: {'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}Message: |