anuragvohraec commented on issue #3308:
URL: https://github.com/apache/couchdb/issues/3308#issuecomment-860169054


   > As far as db / doc not found, I think error reason is already provided:
   > 
   > ```
   >  % http $DB/mydb2/doc4
   > HTTP/1.1 404 Object Not Found
   > 
   > {
   >     "error": "not_found",
   >     "reason": "Database does not exist."
   > }
   > ```
   
   Yes, my mistake. I some how missed it.
   
   > As for `dbseq=true` we have a similar idea already with the 
`local_seq=true` parameter:
   
   Works only for normal docs, but for local docs (replication logs) it won't 
return anything. Morever the _local_seq is not DB update sequence which is used 
to determine if replication is required or not.
   
    
   > We return the doc update sequence along with a body. I wonder if we can 
co-opt this feature to return the current dbseq. Something like?
   > 
   > ```
   > % http $DB/mydb1/doc1'?db_seq=true'
   
   I would suggest it to be for local docs (replication logs) 
`$db/mydb1/_local/replogs1?db_seq=true`;


-- 
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