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 q03CjpHX015086 for ; Tue, 3 Jan 2012 07:45:51 -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 (jimi mo19) (RZmta 27.2 DYNA|AUTH) with (DHE-RSA-AES128-SHA encrypted) ESMTPA id C0381bo03CT25Z for ; Tue, 3 Jan 2012 13:45:37 +0100 (MET) Received: by britannica.bec.de (sSMTP sendmail emulation); Tue, 03 Jan 2012 13:45:35 +0100 Date: Tue, 3 Jan 2012 13:45:35 +0100 From: Joerg Sonnenberger To: tech@mdocml.bsd.lv Subject: Re: half-atomically rebuild databases Message-ID: <20120103124535.GA6689@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> 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: <20120101162958.GB5307@iris.usta.de> User-Agent: Mutt/1.5.21 (2010-09-15) 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 -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv