Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 75FA3DC2D for ; Fri, 28 Sep 2012 18:25:08 +0000 (UTC) Received: (qmail 71901 invoked by uid 500); 28 Sep 2012 18:25:07 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 71864 invoked by uid 500); 28 Sep 2012 18:25:07 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 71855 invoked by uid 99); 28 Sep 2012 18:25:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2012 18:25:07 +0000 Date: Sat, 29 Sep 2012 05:25:07 +1100 (NCT) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Message-ID: <91997457.140405.1348856707797.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (COUCHDB-576) Require current update_seq when deleting a database for extra safety. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465801#comment-13465801 ] Paul Joseph Davis commented on COUCHDB-576: ------------------------------------------- Using the update_seq or a UUID is probably the best way forward. We've already talked about adding a UUID to each database anyway so that seems probably the best route. The ?type approach just seems awkward and really not much of a help if you can still accidentally delete things when you're in a hurry and don't bother specifying a ?type value. > Require current update_seq when deleting a database for extra safety. > --------------------------------------------------------------------- > > Key: COUCHDB-576 > URL: https://issues.apache.org/jira/browse/COUCHDB-576 > Project: CouchDB > Issue Type: Improvement > Components: Database Core > Reporter: Robert Newson > Attachments: delete-db-safety-with-tests.patch > > > Require the current update_seq before deleting a database to prevent accidental deletion. > DELETE /db2?seq=12 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira