From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.218.138 with SMTP id hq10cs42340icb; Wed, 22 Dec 2010 06:46:49 -0800 (PST) Received: by 10.224.76.81 with SMTP id b17mr6505185qak.146.1293029208441; Wed, 22 Dec 2010 06:46:48 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id u20si12522950qcp.13.2010.12.22.06.46.48; Wed, 22 Dec 2010 06:46:48 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id F11861678323; Wed, 22 Dec 2010 09:46:47 -0500 (EST) Received: from gateway0.EECS.Berkeley.EDU (gateway0.EECS.Berkeley.EDU [169.229.60.87]) by rubyforge.org (Postfix) with ESMTP id 97849167831A for ; Wed, 22 Dec 2010 09:42:47 -0500 (EST) Received: from icsi.berkeley.edu (samurai.ICIR.org [192.150.187.48]) (authenticated bits=0) by gateway0.EECS.Berkeley.EDU (8.14.4/8.13.5) with ESMTP id oBMEgNdY015363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 22 Dec 2010 06:42:25 -0800 (PST) Date: Wed, 22 Dec 2010 06:42:22 -0800 From: Matthias Vallentin To: Ben Walton Message-ID: <20101222144222.GG60419@icsi.berkeley.edu> References: <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca> <20101215081955.GF568@icsi.berkeley.edu> <1292432651-sup-6834@jamestaylor.org> <20101218051216.GS60419@icsi.berkeley.edu> <1292649662-sup-8863@jamestaylor.org> <20101218190427.GU60419@icsi.berkeley.edu> <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca> <20101221064445.GZ60419@icsi.berkeley.edu> <1292929122-sup-7072@tilus.net> <1292940403-sup-7858@pinkfloyd.chass.utoronto.ca> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1292940403-sup-7858@pinkfloyd.chass.utoronto.ca> X-PGP-Fingerprint: 8A3B 1323 B469 CCBA 54D3 3BCC D5E7 8DF5 9C8D 4B41 User-Agent: Mutt/1.5.20 (2009-06-14) Cc: sup-talk Subject: Re: [sup-talk] current state of synching upstream? X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org On Tue, Dec 21, 2010 at 09:11:42AM -0500, Ben Walton wrote: > I'm looking at the code again right now as the Recoverable may be the > key as to why this doesn't get saved... I did some printf-debugging at shutdown time and am now really puzzled why SourceManager.save_source is not invoked. The function Index.save and SourceManager.save_source look as follows: def save debug "saving index and sources..." FileUtils.mkdir_p @dir unless File.exists? @dir -> debug "*** Index.save" SourceManager.save_sources save_index end def save_sources fn=Redwood::SOURCE_FN -> debug "*** SourceManager.save_sources" @source_mutex.synchronize do ... end end Adding the with -> marked statement in Index.save printed, however, not the debug statement in SourceManager.save_sources! Any ideas how this is possible? Matthias _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk