Skip to content

Commit 9f22a95

Browse files
author
Kenneth Berland
committed
specify localhost when initiating or else get "exception: cant use localhost in repl set member names except when using it for all members" on subsequent rs.add()
1 parent b1da809 commit 9f22a95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/tutorial/deploy-replica-set.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ The examples in this procedure create a new replica set named ``rs0``.
112112

113113
.. code-block:: javascript
114114

115-
rs.initiate()
115+
rs.initiate( { _id:"rs0", "members": [ { _id:0, "host":"localhost:27017" } ] } )
116116

117117
#. Display the current :doc:`replica configuration </reference/replica-configuration>`:
118118

0 commit comments

Comments
 (0)