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

DBClientCursor should call metadataReader once per batch

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.3
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • Repl 2020-01-27

      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.

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

              Created:
              Updated:
              Resolved: