Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
Description
The documentation for custom multi-datacenter write concerns uses invalid JavaScript.
I tested it in the mongo shells for 2.6.0, 2.6.11, and 3.0.7 and found the same error
replset:PRIMARY> var conf = rs.conf();
|
replset:PRIMARY> conf.members[0].tags = { "dc.va": "rack1"};
|
replset:PRIMARY> rs.reconfig(conf)
|
{
|
"errmsg" : "exception: The dotted field 'dc.va' in 'members.0.tags.dc.va' is not valid for storage.",
|
"code" : 57,
|
"ok" : 0
|
}
|