You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2017/04/19 01:59:24 UTC

[couchdb-documentation] branch 1.6.x updated: Update description and examples for _replication_state_time

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch 1.6.x
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git

The following commit(s) were added to refs/heads/1.6.x by this push:
       new  0d338e0   Update description and examples for _replication_state_time
0d338e0 is described below

commit 0d338e08df72b29cd4e48270423df233bb533752
Author: Jonathan Hall <fl...@flimzy.com>
AuthorDate: Tue Apr 18 21:08:53 2017 +0200

    Update description and examples for _replication_state_time
---
 src/replication/replicator.rst | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/src/replication/replicator.rst b/src/replication/replicator.rst
index cd166eb..323168a 100644
--- a/src/replication/replicator.rst
+++ b/src/replication/replicator.rst
@@ -66,7 +66,7 @@ CouchDB with 3 new fields:
         "create_target":  true,
         "_replication_id":  "c0ebe9256695ff083347cbf95f93e280",
         "_replication_state":  "triggered",
-        "_replication_state_time":  1297974122
+        "_replication_state_time":  "2011-02-17T20:22:02+01:00"
     }
 
 Special fields set by the replicator start with the prefix
@@ -83,9 +83,8 @@ Special fields set by the replicator start with the prefix
 
 -  ``_replication_state_time``
 
-   A Unix timestamp (number of seconds since 1 Jan 1970) that tells us
-   when the current replication state (marked in ``_replication_state``)
-   was set.
+  The time in RFC3339 format when the current replication state (marked in
+  ``_replication_state``) was set.
 
 -  ``_replication_state_reason``
 
@@ -117,7 +116,7 @@ the document will look like:
         "create_target":  true,
         "_replication_id":  "c0ebe9256695ff083347cbf95f93e280",
         "_replication_state":  "completed",
-        "_replication_state_time":  1297974122
+        "_replication_state_time":  "2011-02-17T20:22:02+01:00"
     }
 
 When an error happens during replication, the ``_replication_state``
@@ -195,7 +194,7 @@ While document ``doc_A`` will look like this:
         "target":  "bar",
         "_replication_id":  "c0ebe9256695ff083347cbf95f93e280",
         "_replication_state":  "triggered",
-        "_replication_state_time":  1297974122
+        "_replication_state_time":  "2011-02-17T20:22:02+01:00"
     }
 
 Note that both document get exactly the same value for the
@@ -248,7 +247,7 @@ and B:
         "continuous":  true,
         "_replication_id":  "c0ebe9256695ff083347cbf95f93e280",
         "_replication_state":  "triggered",
-        "_replication_state_time":  1297971311
+        "_replication_state_time":  "2011-02-17T19:35:11+01:00"
     }
 
 .. code-block:: javascript
@@ -260,7 +259,7 @@ and B:
         "continuous":  true,
         "_replication_id":  "231bb3cf9d48314eaa8d48a9170570d1",
         "_replication_state":  "triggered",
-        "_replication_state_time":  1297974122
+        "_replication_state_time":  "2011-02-17T19:35:11+01:00"
     }
 
 Now without stopping and restarting CouchDB, you change the name of the
@@ -323,7 +322,7 @@ following pull replication documents in it:
          "continuous":  true,
          "_replication_id":  "c0ebe9256695ff083347cbf95f93e280",
          "_replication_state":  "triggered",
-         "_replication_state_time":  1297971311
+         "_replication_state_time":  "2011-02-17T19:35:11+01:00"
     }
 
 .. code-block:: javascript
@@ -335,7 +334,7 @@ following pull replication documents in it:
          "continuous":  true,
          "_replication_id":  "231bb3cf9d48314eaa8d48a9170570d1",
          "_replication_state":  "triggered",
-         "_replication_state_time":  1297974122
+         "_replication_state_time":  "2011-02-17T20:22:02+01:00"
     }
 
 Now you would like to have the same pull replications going on in server

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].