[SERVER-6632] Unable to change priority on replset member Created: 28/Jul/12 Updated: 15/Aug/12 Resolved: 28/Jul/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mike DiCarlo | Assignee: | Scott Hernandez (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
PRIMARY> cfg1 = rs.conf(); , , , , { "_id" : 6, "host" : "50.23.75.130:28000" } ] |
| Comments |
| Comment by Mike DiCarlo [ 28/Jul/12 ] | |
|
Got it. Thanks! | |
| Comment by Scott Hernandez (Inactive) [ 28/Jul/12 ] | |
|
That is an index accessor in javascript and not based on the _id value. I think you want to use this line:
The index is 0-based so you have 5 hosts starting at 0 which results in the last one being at ordinal 4. |