Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7817

replica set config field "settings" isn't returned from rs.conf()

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.2.4, 2.3.2
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • ALL

      foo:PRIMARY> rs.conf()
      {
      	"_id" : "foo",
      	"version" : 2,
      	"members" : [
      		{
      			"_id" : 0,
      			"host" : "erh-mb5-2.local:27017"
      		}
      	]
      }
      foo:PRIMARY> x = rs.conf()
      {
      	"_id" : "foo",
      	"version" : 2,
      	"members" : [
      		{
      			"_id" : 0,
      			"host" : "erh-mb5-2.local:27017"
      		}
      	]
      }
      foo:PRIMARY> x.settings = { chainingAllowed : false }
      { "chainingAllowed" : false }
      foo:PRIMARY> x
      {
      	"_id" : "foo",
      	"version" : 2,
      	"members" : [
      		{
      			"_id" : 0,
      			"host" : "erh-mb5-2.local:27017"
      		}
      	],
      	"settings" : {
      		"chainingAllowed" : false
      	}
      }
      foo:PRIMARY> rs.reconfig(x)
      { "ok" : 1 }
      foo:PRIMARY> rs.conf()
      {
      	"_id" : "foo",
      	"version" : 3,
      	"members" : [
      		{
      			"_id" : 0,
      			"host" : "erh-mb5-2.local:27017"
      		}
      	]
      }
      foo:PRIMARY> 
      

            Assignee:
            kristina Kristina Chodorow (Inactive)
            Reporter:
            eliot Eliot Horowitz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: