[CDRIVER-140] -1 is returned on successful mongo_connect Created: 19/May/12 Updated: 19/Oct/16 Resolved: 01/Jun/12 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 0.5.2 |
| Fix Version/s: | 0.6 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Pawel | Assignee: | Kyle Banker |
| Resolution: | Done | Votes: | 0 |
| Labels: | connection | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Oracle Linux 6, 64bit, standard packages only |
||
| Description |
|
I'm calling simple mongo_connect(), but I get MONGO_ERROR back, even if the connection succeeds. (gdb) next else { I have to check connection->err irrespective of the return code from mongo_connect() The connection is, in fact, successful, I can send objects and everything. |
| Comments |
| Comment by Pawel [ 29/May/12 ] |
|
Verified in 0.6 |
| Comment by Kyle Banker [ 25/May/12 ] |
|
Have not been able to reproduce this. Let us know if you can. |
| Comment by Pawel [ 21/May/12 ] |
|
I only have one node - it's a development system. > I don't have a test program, and 0.6 (I assume you made your changes to master only), has incompatible changes on write/inserts (with these "concern" things). I'll try to switch soon, and let you know how it went. |
| Comment by Kyle Banker [ 21/May/12 ] |
|
Can you update your checkout and try again? I just fixed a related bug that may be causing this. Which version of MongoDB are you running? Are you connecting to a secondary or a primary? Can you connect to the shell and print the result of db.isMaster() here? Thanks. |