Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 53257 invoked from network); 2 Jan 2011 10:33:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jan 2011 10:33:10 -0000 Received: (qmail 48743 invoked by uid 500); 2 Jan 2011 10:33:10 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 48436 invoked by uid 500); 2 Jan 2011 10:33:10 -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 48428 invoked by uid 99); 2 Jan 2011 10:33:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jan 2011 10:33:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jan 2011 10:33:07 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p02AWkEV014489 for ; Sun, 2 Jan 2011 10:32:46 GMT Message-ID: <32041393.96331293964366056.JavaMail.jira@thor> Date: Sun, 2 Jan 2011 05:32:46 -0500 (EST) From: "Filipe Manana (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-1003) deleting db file is asynchronous & file rename in couch_file:delete In-Reply-To: <6302477.93961293919906761.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-1003?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12= 976500#action_12976500 ]=20 Filipe Manana commented on COUCHDB-1003: ---------------------------------------- "Note: this isn't the only test where we do apply such fix. Feel free to reopen th= e ticket anyway. " Beno=C3=AEt, what other tests do that? The only ones that do a wait loop I = can remember, like replicator_db.js, do it to wait for something to happen = and not to fix an issue like this one. And as for the 2nd file descriptor, it's ref counted like the updater file = descriptor. I don't it's the cause for this. > deleting db file is asynchronous & file rename in couch_file:delete > ------------------------------------------------------------------- > > Key: COUCHDB-1003 > URL: https://issues.apache.org/jira/browse/COUCHDB-1003 > Project: CouchDB > Issue Type: Question > Components: Database Core > Reporter: Benoit Chesneau > > I wonder why we spawn the file deletion when we delete a database. On slo= w io machine it introduces latency. I don't see any reason we make this del= etion asynchronous ? > About couch_file:delete, we first rename the file before deleting it. Why= are we doing that ? Is this for windows ? --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.