[SERVER-6467] Issue connecting to mongod using C++ driver Created: 16/Jul/12  Updated: 15/Aug/12  Resolved: 26/Jul/12

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Greg Studer Assignee: Eric Milkie
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OSX


Attachments: File run.sh    
Operating System: ALL
Participants:

 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.



 Comments   
Comment by Eric Milkie [ 26/Jul/12 ]

I can't make this break in the manner described. I only used Boost 1.49 however. If Boost 1.50 breaks the C++ driver in this odd fashion, it's not a regression for 2.2.

Comment by Greg Studer [ 16/Jul/12 ]

Attached file being used to compile and start things.

Generated at Thu Feb 08 03:11:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.