nickva opened a new pull request #2926:
URL: https://github.com/apache/couchdb/pull/2926


   As per ML 
[discussion](https://lists.apache.org/thread.html/rb328513fb932e231cf8793f92dd1cc2269044cb73cb43a6662c464a1%40%3Cdev.couchdb.apache.org%3E)
 add a `uuid` field to db info results in order to be able to uniquely identify 
a particular instance of a database. When a database is deleted and re-created 
with the same name, it will return a new `uuid` value.
   
   ```
   $ http get $DB/db1
   HTTP/1.1 200 OK
   
   {
       "cluster": {
           "n": 0,
           "q": 0,
           "r": 0,
           "w": 0
       },
       "compact_running": false,
       "data_size": 0,
       "db_name": "db1",
       "disk_format_version": 0,
       "disk_size": 0,
       "doc_count": 0,
       "doc_del_count": 0,
       "instance_start_time": "0",
       "purge_seq": 0,
       "sizes": {
           "external": 2,
           "views": 0
       },
       "update_seq": "000000000000000000000000",
       "uuid": "b00a3d1632df7c15d12ca08299922c55"
   }
   
   $ http delete $DB/db1
   $ http put $DB/db1
   
   $ http get $DB/db1
   HTTP/1.1 200 OK
   
   {
       "cluster": {
           "n": 0,
           "q": 0,
           "r": 0,
           "w": 0
       },
       "compact_running": false,
       "data_size": 0,
       "db_name": "db1",
       "disk_format_version": 0,
       "disk_size": 0,
       "doc_count": 0,
       "doc_del_count": 0,
       "instance_start_time": "0",
       "purge_seq": 0,
       "sizes": {
           "external": 2,
           "views": 0
       },
       "update_seq": "000000000000000000000000",
       "uuid": "0e94a664c30595601c4c9bb1d8bb9f67"
   }
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to