title: MongoDB Primary replica set member syncing to secondary
body: <p>I have a replica set having three members, with <code>host0:27100</code> as a primary member. Recently i changed the configuration and made the <code>host2:27102</code> as primary member. Followed <a href="http://docs.mongodb.org/manual/tutorial/force-member-to-be-primary/" rel="nofollow">these</a> docs.</p>
  
  <p>After changing the configuratio, the <code>rs.status()</code> output says that the <code>host1:27101</code> is <code>"syncingTo" : "host2:27102"</code> which is intended. </p>
  
  <p>But the output for new primary <code>host2:27102</code> shows it is <code>"syncingTo" : "host0:27100"</code> which is the previous primary member, and changed into secondary.</p>
  
  <p>I cannot understand why its syncing to the secondary member. Is it a normal behavior?</p>
  
  <pre><code>s0:SECONDARY&gt; rs.status()
  {
          "set" : "s0",
          "date" : ISODate("2013-09-25T12:31:42Z"),
          "myState" : 2,
          "syncingTo" : "host2:27102",
          "members" : [
                  {
                          "_id" : 0,
                          "name" : "host0:27100",
                          "health" : 1,
                          "state" : 2,
                          "stateStr" : "SECONDARY",
                          "uptime" : 428068,
                          "optime" : Timestamp(1380112272, 1),
                          "optimeDate" : ISODate("2013-09-25T12:31:12Z"),
                          "self" : true
                  },
                  {
                          "_id" : 1,
                          "name" : "host1:27101",
                          "health" : 1,
                          "state" : 2,
                          "stateStr" : "SECONDARY",
                          "uptime" : 397,
                          "optime" : Timestamp(1380112272, 1),
                          "optimeDate" : ISODate("2013-09-25T12:31:12Z"),
                          "lastHeartbeat" : ISODate("2013-09-25T12:31:42Z"),
                          "lastHeartbeatRecv" : ISODate("2013-09-25T12:31:41Z"),
                          "pingMs" : 10,
                          "syncingTo" : "host2:27102"
                  },
                  {
                          "_id" : 2,
                          "name" : "host2:27102",
                          "health" : 1,
                          "state" : 1,
                          "stateStr" : "PRIMARY",
                          "uptime" : 397,
                          "optime" : Timestamp(1380112272, 1),
                          "optimeDate" : ISODate("2013-09-25T12:31:12Z"),
                          "lastHeartbeat" : ISODate("2013-09-25T12:31:42Z"),
                          "lastHeartbeatRecv" : ISODate("2013-09-25T12:31:41Z"),
                          "pingMs" : 2,
                          "syncingTo" : "host0:27100"
                  }
          ],
          "ok" : 1
  }
  </code></pre>