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.161]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id q01FtSxc006372 for ; Sun, 1 Jan 2012 10:55:29 -0500 (EST) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/afgnrylsiWy2aTV+pA4J X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de (ip-109-45-206-227.web.vodafone.de [109.45.206.227]) by smtp.strato.de (cohen mo61) (RZmta 27.2 DYNA|AUTH) with (DHE-RSA-AES128-SHA encrypted) ESMTPA id o045bbo01Cq2dP for ; Sun, 1 Jan 2012 16:55:12 +0100 (MET) Received: by britannica.bec.de (sSMTP sendmail emulation); Sun, 01 Jan 2012 16:55:08 +0100 Date: Sun, 1 Jan 2012 16:55:08 +0100 From: Joerg Sonnenberger To: tech@mdocml.bsd.lv Subject: Re: half-atomically rebuild databases Message-ID: <20120101155508.GA4516@britannica.bec.de> Mail-Followup-To: tech@mdocml.bsd.lv References: <20120101154538.GA5307@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: <20120101154538.GA5307@iris.usta.de> User-Agent: Mutt/1.5.21 (2010-09-15) 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? You can create the new file under temporary name in the same directory and rename it to the normal file name. Joerg -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv