flimzy commented on a change in pull request #285: Couchdb 3326 clustered purge
URL: 
https://github.com/apache/couchdb-documentation/pull/285#discussion_r201065842
 
 

 ##########
 File path: src/api/database/misc.rst
 ##########
 @@ -78,47 +63,216 @@
         {
             "c6114c65e295552ab1019e2b046b10e": [
                 "3-b06fcd1c1c9e0ec7c480ee8aa467bf3b",
-                "3-0e871ef78849b0c206091f1a7af6ec41"
+                "3-c50a32451890a3f1c3e423334cc92745"
             ]
         }
 
     **Response**:
 
     .. code-block:: http
 
-        HTTP/1.1 200 OK
+        HTTP/1.1 201 Created
         Cache-Control: must-revalidate
-        Content-Length: 103
+        Content-Length: 107
         Content-Type: application/json
-        Date: Mon, 12 Aug 2013 10:53:24 GMT
-        Server: CouchDB (Erlang/OTP)
+        Date: Fri, 02 Jun 2017 18:55:54 GMT
+        Server: CouchDB/2.0.0-2ccd4bf (Erlang OTP/18)
 
         {
-            "purge_seq":3,
-            "purged":{
-                "c6114c65e295552ab1019e2b046b10e": [
-                    "3-b06fcd1c1c9e0ec7c480ee8aa467bf3b"
-                ]
+          "purged": {
+            "c6114c65e295552ab1019e2b046b10e": {
+              "purged": [
+                "3-c50a32451890a3f1c3e423334cc92745"
+              ],
+              "ok": true
             }
+          }
         }
 
+.. figure:: ../../../images/rev-tree1.png
+     :align: center
+     :alt: Document Revision Tree 1
+
+     Document Revision Tree 1
+
+For example, given the above purge tree and issuing the above purge request,
+the whole document will be purged, as it contains only a single branch with a
+leaf revision  `3-c50a32451890a3f1c3e423334cc92745` that will be purged.
+As a result of this purge operation, a document with
+`_id:c6114c65e295552ab1019e2b046b10e` will be completely removed from the
+database's documents's b+tree, and sequence b+tree. It will not be available
+through `_all_docs` or `_changes` APIs, as though this document never existed.
 
 Review comment:
   suggest replacing "APIs" with "endpoints"

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to