From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21808 invoked from network); 17 May 2002 18:09:26 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 17 May 2002 18:09:27 -0000 Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 178mA3-00056n-00; Fri, 17 May 2002 14:09:03 -0400 Received: from natint.juniper.net ([207.17.136.129] helo=merlot.juniper.net) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 178m7M-0004mO-00 for ; Fri, 17 May 2002 14:06:17 -0400 Received: from juniper.net (hatzis-bsd.juniper.net [172.17.12.59]) by merlot.juniper.net (8.11.3/8.11.3) with ESMTP id g4HI6ER44475; Fri, 17 May 2002 11:06:14 -0700 (PDT) (envelope-from hatzis@juniper.net) Message-ID: <3CE54696.4010209@juniper.net> From: Mel Hatzis User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.8) Gecko/20020206 X-Accept-Language: en-us MIME-Version: 1.0 To: Lars Henriksen CC: help-gnats@gnu.org Subject: Re: use of GNATSDB References: <3CA28C27.6010201@juniper.net> <20020517120308.GA1524344@cluster2.netman.dk> <20020517122149.GB1524344@cluster2.netman.dk> <20020517122718.GC1524344@cluster2.netman.dk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: help-gnats-admin@gnu.org Errors-To: help-gnats-admin@gnu.org X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion about GNU GNATS List-Archive: Date: Fri, 17 May 2002 11:09:00 -0000 X-SW-Source: 2002-q2/txt/msg00049.txt.bz2 Lars Henriksen wrote: > On Fri, May 17, 2002 at 02:21:49PM +0200, Lars Henriksen wrote: > >>On Fri, May 17, 2002 at 02:03:08PM +0200, Lars Henriksen wrote: >> >>>On Wed, Mar 27, 2002 at 07:21:11PM -0800, Mel Hatzis wrote: >>> >>>>I'm trying to setup a separate database instance by adding a line >>>>into the share/gnats/databases file and setting the GNATSDB env >>>>variable to point to it. I can successfully 'telnet localhost port#' >>>>and, say, lockdb, but when I try using pr-edit it ends up locking >>>>the default database. >>>> >>>I can't reproduce this behaviour. Whether GNATSDB is set or not, the command >>>"pr-edit --lockdb" seems to lock nothing at all. Neither does "pr-edit >>>--database= --lockdb". On the other hand, "pr-edit --lock " >>>honors GNATSDB as well as the --database option. >>> >>That wasn't the whole story. In fact GNATSDB is honored by pr-edit when >>you specify a remote database, but not when you specify a local one. >> > > That should have been: > > That wasn't the whole story. In fact GNATSDB is honored by "pr-edit --lockdb" > when you specify a remote database, but not when you specify a local one. > > Lars Henriksen > Let's clear some things up... the test I'm running is: GNATSDB=test $gnats_home/libexec/gnats/pr-edit --lockdb (let's ignore all other uses of GNATSDB and stick with this one) My $gnats_home/etc/gnats/databases file looks like: default:Bug database:/usr/local/com/gnatsdb:server.juniper.net:1529 test:GNATS Test:/homes/hatzis/local/gnats/test:server.juniper.net:1529 Let's also define local vs remote...as far as the code is concerned, it's remote if the line in the databases file defines the server and port number ...as per the last line in databaseSpecIsNetConn which reads: return (dbEnt->fieldcount > 3) ? 1 : 0; So, as far as my test is concerned, local mode is not used at all. When I run the 'pr-edit --lockdb' command, I don't see a gnats.lock in my test database... bash-2.03$ ls /homes/hatzis/local/gnats/test/gnats-adm addresses current index states categories dbconfig locks/ submitters classes gnatsd.access responsible but I do see a gnats.lock file in the default database... bash-2.03$ ls /usr/local/com/gnatsdb/gnats-adm addresses classes gnats.lock locks/ states categories dbconfig gnatsd.access responsible submitters -Mel _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats