[CDRIVER-222] FreeBSD version of mongo_replica_set_client() doesn't resolve hostnames Created: 26/Jun/13  Updated: 11/Nov/13  Resolved: 11/Nov/13

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 0.90.0

Type: Bug Priority: Major - P3
Reporter: Victor Matuzenko Assignee: Gary Murakami
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I have trouble on FreeBSD: mongo_replica_set_client() calls db.isMaster() and if hosts were configured with their hostnames (not IPs), it returns error “can't find primary in replica set (6)” because of it doesn't resolve hostnames. I use version 0.7 of mongo c driver.



 Comments   
Comment by Christian Hergert [ 11/Nov/13 ]

Hi,

The new C driver[1] does resolve hostnames for you, and has been tested on FreeBSD 9.2 and 10.0 Beta 3. Please let me know if you have any issues.

[1] https://github.com/chergert/libmongoc/

Generated at Wed Feb 07 21:08:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.