[SERVER-8603] Cannot reset target specified by syncFrom() Created: 18/Feb/13 Updated: 08/Mar/13 Resolved: 20/Feb/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 2.3.2 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Hiroaki | Assignee: | Stennie Steneker (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | replicaset | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
CentOS6.2 |
||
| Participants: |
| Description |
|
I could specify the sync target by using rs.syncFrom("[host]:[port]").
Is there the way to reset the sync target ? |
| Comments |
| Comment by Hiroaki [ 21/Feb/13 ] |
|
I understood and confirmed its movement. Thanks ! |
| Comment by Stennie Steneker (Inactive) [ 20/Feb/13 ] |
|
Hi, As per the replSetSyncFrom documentation, this command provides a temporary override of default behaviour. There are specific notes on the documentation page for when this setting will be reset (which includes a restart of mongod). If you use the rs.syncFrom() helper in the mongo shell you need to specify a valid host in the replica set to sync from (for example, the primary if you want to effectively "reset" syncing from another secondary). Cheers, |