From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.162]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id q03DJe5C007231 for ; Tue, 3 Jan 2012 08:19:40 -0500 (EST) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/afgnrylriWFFK0cPEOq2 X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de (ip-109-42-105-197.web.vodafone.de [109.42.105.197]) by smtp.strato.de (fruni mo62) (RZmta 27.2 DYNA|AUTH) with (DHE-RSA-AES128-SHA encrypted) ESMTPA id v05b32o03CPmhP for ; Tue, 3 Jan 2012 14:19:29 +0100 (MET) Received: by britannica.bec.de (sSMTP sendmail emulation); Tue, 03 Jan 2012 14:19:27 +0100 Date: Tue, 3 Jan 2012 14:19:27 +0100 From: Joerg Sonnenberger To: tech@mdocml.bsd.lv Subject: Re: half-atomically rebuild databases Message-ID: <20120103131927.GA7903@britannica.bec.de> Mail-Followup-To: tech@mdocml.bsd.lv References: <20120101154538.GA5307@iris.usta.de> <20120101155508.GA4516@britannica.bec.de> <20120101162958.GB5307@iris.usta.de> <20120103124535.GA6689@britannica.bec.de> <4F02FDA4.6070003@bsd.lv> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F02FDA4.6070003@bsd.lv> User-Agent: Mutt/1.5.21 (2010-09-15) On Tue, Jan 03, 2012 at 02:07:48PM +0100, Kristaps Dzonsons wrote: > On 01/03/12 13:45, Joerg Sonnenberger wrote: > >On Sun, Jan 01, 2012 at 05:29:58PM +0100, Ingo Schwarze wrote: > >>Hi Joerg, > >> > >>Joerg Sonnenberger wrote on Sun, Jan 01, 2012 at 04:55:08PM +0100: > >>>On Sun, Jan 01, 2012 at 04:45:38PM +0100, Ingo Schwarze wrote: > >> > >>>>This is not perfect because the mandocdb process might get -KILLed > >>>>between the two renames, but i don't see a syscall anywhere to > >>>>atomically rename *two* files. > >> > >>>Why do you have to? > >> > >>There are two files to rename(2): whatis.{db,index}. > > > >Well, let me repeat the question, that is the point of having two > >databases. > > Joerg---you mean to ask why I originally used two separate database files? Yes. Joerg -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv