Skip to content

Commit e78166f

Browse files
author
Sam Kleinman
committed
minor: editing cleanup on master/slave document
1 parent df9b285 commit e78166f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

draft/administration/replication-master-slave.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Master Slave
77
*Use only for versions prior to 1.6*
88

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

373373
use local
374374

375-
db.sources.update({host : "prod.mississippi"}, {$set : {host :
376-
"prod.mississippi"}})
375+
db.sources.update( { host : "prod.mississippi" }, { $set : { host : "prod.mississippi" } } )
377376

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

382381
.. code-block:: javascript
383382

384-
./mongod --slave --source prod.mississippi
383+
mongod --slave --source prod.mississippi
385384

386385
or
387386

388387
.. code-block:: javascript
389388

390-
. /mongod --slave
389+
mongod --slave
391390

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

0 commit comments

Comments
 (0)