Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-45557

DBClientCursor should call metadataReader once per batch

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.3
    • None
    • Replication
    • None
    • Fully Compatible
    • Repl 2020-01-27

    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.

      Attachments

        Activity

          People

            lingzhi.deng@mongodb.com Lingzhi Deng
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: