[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: SERVER-45557: DBClientCursor should call metadataReader once per batch
Branch: master
https://github.com/mongodb/mongo/commit/e48ee34609cd5450edf1a3de8a8f75ae55db3f34

Generated at Thu Feb 08 05:09:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.