Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Ruby Replication Set Node Discovery
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brendan W. McAdams  
View profile  
 More options Aug 9 2011, 9:28 am
From: "Brendan W. McAdams" <bren...@10gen.com>
Date: Tue, 9 Aug 2011 09:28:56 -0400
Local: Tues, Aug 9 2011 9:28 am
Subject: Re: [mongodb-dev] Ruby Replication Set Node Discovery

On any server that isn't the primary, (eg isMaster is false)  an extra field
is included,  "primary", with the address of the replica set primary.
On Aug 9, 2011 9:26 AM, "karl" <karlseg...@gmail.com> wrote:

> Thanks. Makes sense. However, I'm running 1.8.1 and I don't see a way to
get
> the master from isMaster. Slaves and the master are merged into the
> "hosts"...this means that, at worst case, you need to keep going until you
> call isMaster on the actual master (and thus get ismaster: true).

> From the sounds of it, you seem to be indicating that isMaster: 1 returns
> the master in a separate entry than the slaves. Is this a recent
> change,something upcoming, or are you mistaken? :)

> Karl

> --
> You received this message because you are subscribed to the Google Groups

"mongodb-dev" group.
> To view this discussion on the web visit

https://groups.google.com/d/msg/mongodb-dev/-/ynrJhlKikT8J.
> To post to this group, send email to mongodb-dev@googlegroups.com.
> To unsubscribe from this group, send email to

mongodb-dev+unsubscribe@googlegroups.com.
> For more options, visit this group at

http://groups.google.com/group/mongodb-dev?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.