You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/07/19 14:39:32 UTC

[GitHub] nono commented on a change in pull request #146: fix: node doc delete missing ?rev

nono commented on a change in pull request #146: fix: node doc delete missing ?rev
URL: https://github.com/apache/couchdb-documentation/pull/146#discussion_r128266101
 
 

 ##########
 File path: src/cluster/nodes.rst
 ##########
 @@ -74,8 +74,16 @@ Removing a node
 Before you remove a node, make sure that you have moved all
 :ref:`shards <cluster/sharding/move>` away from that node.
 
-To remove ``node2`` from server ``yyy.yyy.yyy.yyy``:
+To remove ``node2`` from server ``yyy.yyy.yyy.yyy``, you need to first know the
+revision of the document that signifies that node?s existence:
 
 .. code-block:: text
 
-    curl -X DELETE "http://xxx.xxx.xxx.xxx:5986/_nodes/node2@yyy.yyy.yyy.yyy" -d {}
+    curl "http://xxx.xxx.xxx.xxx:5986/_nodes/node2@yyy.yyy.yyy.yyy"
+    {"_id":"node2@yyy.yyy.yyy.yyy","_rev":"1-967a00dff5e02add41820138abb3284d"}
+
+With that ``_rev``, you can now proceed to delete the node document:
+
+.. code-block:: text
+
+    curl -X DELETE "http://xxx.xxx.xxx.xxx:5986/_nodes/node2@yyy.yyy.yyy.yyy"?rev=1-967a00dff5e02add41820138abb3284d
 
 Review comment:
   [nitpick] The closing double-quotes should be at the end of the URL, not in the middle
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services