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

Cleanup replSetGetStatus output/code (field names)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.4
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 12 (04/01/16)

      • rename "OpTime" field to "opTimes"
      • add more optimes into field
        • durable
        • applied
      • use helper to append OpTime to output
      • fix tests
      > rs.status()
      {
      	"set" : "test",
      	"date" : ISODate("2016-03-22T15:34:03.033Z"),
      	"myState" : 1,
      	"term" : NumberLong(3),
      	"heartbeatIntervalMillis" : NumberLong(2000),
      	"OpTimes" : {
      		"lastCommittedOpTime" : {
      			"ts" : Timestamp(1458660832, 1),
      			"t" : NumberLong(3)
      		}},
      	"members" : [
      		{
      			"_id" : 0,
      			"name" : "tart.local:27017",
      			"health" : 1,
      			"state" : 1,
      			"stateStr" : "PRIMARY",
      			"uptime" : 14,
      			"optime" : {
      				"ts" : Timestamp(1458660832, 1),
      				"t" : NumberLong(3)
      			},
      			"optimeDate" : ISODate("2016-03-22T15:33:52Z"),
      			"infoMessage" : "could not find member to sync from",
      			"electionTime" : Timestamp(1458660831, 1),
      			"electionDate" : ISODate("2016-03-22T15:33:51Z"),
      			"configVersion" : 1,
      			"self" : true
      

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: