[SERVER-2714] RS hidden setting should treat 1 as true Created: 09/Mar/11 Updated: 12/Jul/16 Resolved: 17/Mar/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 1.8.0-rc1 |
| Fix Version/s: | 1.8.1, 1.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | Kristina Chodorow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
Currently it is just silently ignored rs.reconfig( {_id: 'rs', members: [{_id:0, host:'50.56.91.235'}, {_id:1,host:'50.56.91.254'}, {_id:2, host:'50.56.91.222', hidden:1, priority:0}]}) rs:PRIMARY> rs.isMaster() > rs.initiate( {_id: 'rs', members: [{_id:0, host:'50.56.91.235'}, {_id:1,host:'50.56.91.254'}, {_id:2, host:'50.56.91.222', hidden:true, priority:0}]}) |
| Comments |
| Comment by auto [ 19/Mar/11 ] |
|
Author: {u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}Message: allow 1 or true for rs config options |
| Comment by auto [ 17/Mar/11 ] |
|
Author: {u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}Message: allow 1 or true for rs config options |
| Comment by Eliot Horowitz (Inactive) [ 09/Mar/11 ] |
|
Should use .trueValue() for all things like this. |