Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 64728 invoked from network); 27 Jan 2011 18:03:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2011 18:03:22 -0000 Received: (qmail 12097 invoked by uid 500); 27 Jan 2011 18:03:21 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 11693 invoked by uid 500); 27 Jan 2011 18:03:18 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 11684 invoked by uid 99); 27 Jan 2011 18:03:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 18:03:17 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=FREEMAIL_FROM,FS_REPLICA,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chrisstocktonaz@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-ew0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 18:03:11 +0000 Received: by ewy23 with SMTP id 23so1019008ewy.11 for ; Thu, 27 Jan 2011 10:02:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=AXIhUOMs9JUvI9A5gnnuaKxDIRaswU0Gs42p1XiHfso=; b=LYTwQVAnmtkSsGXw2Vpcw1hwK3Jbzzder+nkwSJkow0EW8/4jdPOyq8jUFvU9zYX6S Qwt7UC4LexPVAiT4gx9OuqHJ2VPVO+WEhrF3Vjo4sSKzO4IEH09rCa4+6PDZC77OVeIz vnRPasP/k4mBNHWo57uh8spVPU0yMwjoVgVPk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=EhqM8Kgt1xXmrSkcs9hhUy/GjuHR1JMqcJni7JHMjCM6ewSRQC53t5Mra583tpXxGv n1M+kT0/4iMOGwwUT8tldaWdD1tds9m9M2pTCsJyN0VBrVbgL2tHUuAZIs03ZJ8EgGtY IiLvkuiUr3MovcGhIzfKX3q34p4UMyNUUdC3g= MIME-Version: 1.0 Received: by 10.216.176.138 with SMTP id b10mr6616759wem.75.1296151369741; Thu, 27 Jan 2011 10:02:49 -0800 (PST) Received: by 10.216.29.21 with HTTP; Thu, 27 Jan 2011 10:02:49 -0800 (PST) In-Reply-To: References: Date: Thu, 27 Jan 2011 11:02:49 -0700 Message-ID: Subject: Re: dbcopy - A faster alternative to replication From: Chris Stockton To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 I looked through the code, and noticed: A bit of code from [1]: handle_external_req(#httpd{ 29 path_parts=[_DbName, _External, UrlName | _Path] 30 }=HttpReq, Db) -> 31 process_external_req(HttpReq, Db, UrlName); 32 handle_external_req(#httpd{path_parts=[_, _]}=Req, _Db) -> 33 send_error(Req, 404, <<"external_server_error">>, <<"No server name specified.">>); 34 handle_external_req(Req, _) -> 35 send_error(Req, 404, <<"external_server_error">>, <<"Broken assumption">>). >From what I have seen of erlang, this means if no DBName exists, then it will not work. Maybe we could add a optional path without a dbname so people could make global external handlers or would more code be required? [1] http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_external.erl?view=markup