Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-368

Lazily call ismaster instead of doing it during connect

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Blocker - P1 Blocker - P1
    • None
    • legacy-1.0.0-rc0
    • Implementation

    Description

      We shouldn't be calling isMaster during the DBClientConnection::_connect method:

      https://github.com/mongodb/mongo-cxx-driver/blob/legacy/src/mongo/client/dbclient.cpp#L1398

      We should populate server version specific values (like maxBsonObjectSize) upon the first request instead.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tyler@10gen.com Tyler Brock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: