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

Issue connecting to mongod using C++ driver

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Client
    • None
    • OSX
    • ALL

    Description

      For some reason, it seems like connecting to a (2.0) mongod using the no-errmsg connect() method fails when using the C++ driver (2.2).

      void run() {
       
         cout << "run()\n";
         DBClientConnection c;
       
         string errmsg;
       
         // This does not work, error in verify(p) in MessagingPort::port()
         c.connect("localhost:27017");
         
         // This seems to work
         //if(c.connect("localhost:27017", errmsg))
         // cout << "connect ok\n";
       
      }

      Exact compilation steps pending, as well as steps on a pure-2.0 setup.

      Attachments

        1. run.sh
          0.3 kB

        Activity

          People

            milkie@mongodb.com Eric Milkie
            greg_10gen Greg Studer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: