From: Alexandre Oliva Subject: Re: [PATCH] Add old_inodes to emetablob Date: Mon, 27 Aug 2012 23:20:37 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from lsd-gw.ic.unicamp.br ([143.106.7.165]:42204 "EHLO boneca.lsd.ic.unicamp.br" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751002Ab2H1CVD (ORCPT ); Mon, 27 Aug 2012 22:21:03 -0400 In-Reply-To: (Sage Weil's message of "Mon, 27 Aug 2012 09:44:42 -0700 (PDT)") Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Sage Weil Cc: ceph-devel@vger.kernel.org On Aug 27, 2012, Sage Weil wrote: >> + if (!in->old_inodes.empty()) { >> + snapid_t newfirst = in->old_inodes.rbegin()->first + 1; >> + if (newfirst > in->first) >> + in->first = newfirst; > Hmm, did you observe a case where in->first was already > the newest > old_inode? No, that was just me doing defensive programming and forgetting to add a warning for this case ;-) IIRC I reasoned I didn't want an already-bugfixed or already-advanced in->first in the MDS journal to be overwritten with a buggy/outdated ->first from the inode proper. However, since I didn't put the warning, I don't know whether it ever hit :-( -- Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist Red Hat Brazil Compiler Engineer