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/24 14:26:09 UTC

[couchdb-documentation] branch master updated: Update all references to instance_start_time

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

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

The following commit(s) were added to refs/heads/master by this push:
       new  fc11bf1   Update all references to instance_start_time
fc11bf1 is described below

commit fc11bf1fe75ae6ec6a2e50108236a1ad963e7c94
Author: Jonathan Hall <fl...@flimzy.com>
AuthorDate: Mon Apr 24 12:40:53 2017 +0200

    Update all references to instance_start_time
    
    Previously, the new behavior (that instance_start_time is always "0") was
    mentioned only in one place. This updates it throughout the documentation.
---
 src/api/database/common.rst    | 2 +-
 src/api/database/compact.rst   | 6 +++---
 src/intro/curl.rst             | 2 +-
 src/intro/security.rst         | 2 +-
 src/maintenance/compaction.rst | 2 +-
 src/replication/protocol.rst   | 8 ++++----
 src/whatsnew/2.0.rst           | 1 +
 7 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/src/api/database/common.rst b/src/api/database/common.rst
index 5b2c76f..5178535 100644
--- a/src/api/database/common.rst
+++ b/src/api/database/common.rst
@@ -107,7 +107,7 @@
             "disk_size": 137433211,
             "doc_count": 6146,
             "doc_del_count": 64637,
-            "instance_start_time": "1376269325408900",
+            "instance_start_time": "0",
             "purge_seq": 0,
             "update_seq": 292786
         }
diff --git a/src/api/database/compact.rst b/src/api/database/compact.rst
index fa10aa9..4fcf34e 100644
--- a/src/api/database/compact.rst
+++ b/src/api/database/compact.rst
@@ -162,8 +162,8 @@
     :<header Content-Type: :mimetype:`application/json`
     :>header Content-Type: - :mimetype:`application/json`
                            - :mimetype:`text/plain; charset=utf-8`
-    :>json string instance_start_time: Timestamp of when the database
-        was opened, expressed in microseconds since the epoch.
+    :>json string instance_start_time: Always ``"0"``. (Returned for legacy
+      reasons.)
     :>json boolean ok: Operation status
     :code 201: Commit completed successfully
     :code 400: Invalid database name
@@ -190,7 +190,7 @@
         Server: CouchDB (Erlang/OTP)
 
         {
-            "instance_start_time": "1376269047459338",
+            "instance_start_time": "0",
             "ok": true
         }
 
diff --git a/src/intro/curl.rst b/src/intro/curl.rst
index 192a3a1..51907ed 100644
--- a/src/intro/curl.rst
+++ b/src/intro/curl.rst
@@ -75,7 +75,7 @@ the return information formatted for clarity):
         "doc_del_count" : 0,
         "disk_format_version" : 5,
         "update_seq" : 0,
-        "instance_start_time" : "1306421773496000",
+        "instance_start_time" : "0",
         "disk_size" : 79
     }
 
diff --git a/src/intro/security.rst b/src/intro/security.rst
index 09fde5b..011b381 100644
--- a/src/intro/security.rst
+++ b/src/intro/security.rst
@@ -545,7 +545,7 @@ write normal documents::
 .. code-block:: javascript
 
     {"db_name":"mydatabase","doc_count":1,"doc_del_count":0,"update_seq":3,"purge_seq":0,
-    "compact_running":false,"disk_size":12376,"data_size":272,"instance_start_time":"1397672867731570",
+    "compact_running":false,"disk_size":12376,"data_size":272,"instance_start_time":"0",
     "disk_format_version":6,"committed_update_seq":3}
 
 If Jan attempted to create a design doc, however, CouchDB would return a
diff --git a/src/maintenance/compaction.rst b/src/maintenance/compaction.rst
index 3f6ec64..ab717f0 100644
--- a/src/maintenance/compaction.rst
+++ b/src/maintenance/compaction.rst
@@ -103,7 +103,7 @@ information about it via :ref:`database information resource <api/db>`::
         "disk_size": 17703025,
         "doc_count": 5091,
         "doc_del_count": 0,
-        "instance_start_time": "1371660751878859",
+        "instance_start_time": "0",
         "purge_seq": 0,
         "update_seq": 76215
     }
diff --git a/src/replication/protocol.rst b/src/replication/protocol.rst
index 3fddaed..246308d 100644
--- a/src/replication/protocol.rst
+++ b/src/replication/protocol.rst
@@ -362,8 +362,8 @@ The Replicator retrieves basic information both from Source and Target using
 :get:`/{db}` requests. The GET response MUST contain JSON objects with
 the following mandatory fields:
 
-- **instance_start_time** (*string*): Timestamp when the Database was
-  opened, expressed in *microseconds* since the epoch.
+- **instance_start_time** (*string*): Always ``"0"``. (Returned for legacy
+  reasons.)
 - **update_seq** (*number* / *string*): The current database Sequence ID.
 
 Any other fields are optional. The information that the Replicator needs
@@ -403,7 +403,7 @@ Get Source Information
             "disk_size": 79132913799,
             "doc_count": 41961,
             "doc_del_count": 3807,
-            "instance_start_time": "1380901070238216",
+            "instance_start_time": "0",
             "purge_seq": 0,
             "update_seq": 61772
         }
@@ -1566,7 +1566,7 @@ following mandatory fields:
       Server: CouchDB (Erlang/OTP)
 
       {
-          "instance_start_time": "1381218659871282",
+          "instance_start_time": "0",
           "ok": true
       }
 
diff --git a/src/whatsnew/2.0.rst b/src/whatsnew/2.0.rst
index 27d5935..9c9848b 100644
--- a/src/whatsnew/2.0.rst
+++ b/src/whatsnew/2.0.rst
@@ -69,6 +69,7 @@ Version 2.0.0
   Windows
 * :ref:`Configuration <api/config>` has moved from ``/_config`` to
   ``/_node/{node-name}/_config``
+* ``instance_start_time`` now always reports ``"0"``.
 
 .. _release/2.0.x/upgrade:
 

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