Skip to content

Commit

Permalink
minor: editing cleanup on master/slave document
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Kleinman committed Dec 7, 2012
1 parent df9b285 commit e78166f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions draft/administration/replication-master-slave.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Master Slave
*Use only for versions prior to 1.6*

.. important:: Use :doc:`replica sets </replication>` rather than the
:term:`master`-:term:`slave` configuration. Replica sets are a
:term:`master`\ -:term:`slave` configuration. Replica sets are a
functional superset of master-slave and are more robust. Master-slave
configuration preceded replica sets, which were introduced in MongoDB
version 1.6. This documentation is intended for users of MongoDB
Expand Down Expand Up @@ -372,21 +372,20 @@ To change a :term:`slave's <slave>` source, manually modify the slave's

use local

db.sources.update({host : "prod.mississippi"}, {$set : {host :
"prod.mississippi"}})
db.sources.update( { host : "prod.mississippi" }, { $set : { host : "prod.mississippi" } } )

Restart the slave with the correct command line arguments or with no
``--source`` argument. Once ``local.sources`` is set, no ``--source``
is necessary.

.. code-block:: javascript

./mongod --slave --source prod.mississippi
mongod --slave --source prod.mississippi

or

.. code-block:: javascript

. /mongod --slave
mongod --slave

The slave now points to the correct :term:`master`.

0 comments on commit e78166f

Please sign in to comment.