Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 806AE200C2F for ; Mon, 6 Mar 2017 22:01:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7ECE4160B76; Mon, 6 Mar 2017 21:01:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C7542160B66 for ; Mon, 6 Mar 2017 22:01:08 +0100 (CET) Received: (qmail 18225 invoked by uid 500); 6 Mar 2017 21:01:02 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 18122 invoked by uid 99); 6 Mar 2017 21:01:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Mar 2017 21:01:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 236D118495F; Mon, 6 Mar 2017 21:01:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.82 X-Spam-Level: X-Spam-Status: No, score=-0.82 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=daniel.shahaf.name header.b=ew64sqFS; dkim=pass (1024-bit key) header.d=messagingengine.com header.b=UPnwpXEn Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id sP5EkWwwm4Ir; Mon, 6 Mar 2017 21:01:01 +0000 (UTC) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 24C105F36B; Mon, 6 Mar 2017 21:01:01 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id D52C820B86; Mon, 6 Mar 2017 16:00:58 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Mon, 06 Mar 2017 16:00:58 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=uuKwnBA1IzRQkjx 6D4jwFW5Cq38=; b=ew64sqFSbgZyLkCC+bUA98N5ra3ES+rUXg1nHKuA/Ra4+lp vSi5Wfu8Io3OLNQDm7USKh5HOD/Gh+q1E4JW+WgkwfmLKyAYGws2eYG4aPPH7k5u /nxzTlouJ6WQboVQpCcRwojO6znM+BKs1FS/dcV0Ro/G3Ki1pE3LH68FWNB0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=uuKwnBA1IzRQkj x6D4jwFW5Cq38=; b=UPnwpXEnnDZn6NxMY8B7RLnJT7BB2GSU9Khq1C4nVHmOaT ELO2Yc7jB1fWqdQJMB/u1RDIMZhN2dvxga2a8Nys+eT9wpXUg9LK8xNF6Pt3WQFT CIxwqt9mJ87uXPO8n3sS9t/HRvugpswaWGQuydvT5ov5qZduJe2pIwGuj6kTQ= X-ME-Sender: X-Sasl-enc: td5XSjtsmfDuNd/LREJZ0ooo+CW0NqR0MBipeUDUmk8i 1488834058 Received: from fujitsu.shahaf.local2 (bzq-109-65-57-127.red.bezeqint.net [109.65.57.127]) by mail.messagingengine.com (Postfix) with ESMTPA id 75BCC7E670; Mon, 6 Mar 2017 16:00:58 -0500 (EST) Received: by fujitsu.shahaf.local2 (Postfix, from userid 1000) id 3vcXBk6Ncczqn; Mon, 6 Mar 2017 20:56:14 +0000 (UTC) Date: Mon, 6 Mar 2017 20:56:14 +0000 From: Daniel Shahaf To: dev@subversion.apache.org, Stefan Fuhrmann Cc: commits@subversion.apache.org Subject: Re: svn commit: r1785754 - in /subversion/trunk/subversion: include/svn_error_codes.h libsvn_fs_fs/cached_data.c libsvn_fs_fs/cached_data.h libsvn_fs_fs/transaction.c tests/libsvn_fs/fs-test.c Message-ID: <20170306205614.GB5047@fujitsu.shahaf.local2> References: <20170306195355.C7E213A05B4@svn01-us-west.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170306195355.C7E213A05B4@svn01-us-west.apache.org> User-Agent: Mutt/1.5.23 (2014-03-12) archived-at: Mon, 06 Mar 2017 21:01:09 -0000 stefan2@apache.org wrote on Mon, Mar 06, 2017 at 19:53:55 -0000: > Author: stefan2 > Date: Mon Mar 6 19:53:55 2017 > New Revision: 1785754 > > URL: http://svn.apache.org/viewvc?rev=1785754&view=rev > Log: > Make FSFS consistency no longer depend on hash algorithms. First of all, thanks for fixing this. I didn't do a full review with out-of-diff context, but I did spot two issues: > +++ subversion/trunk/subversion/libsvn_fs_fs/transaction.c Mon Mar 6 19:53:55 2017 > @@ -2385,6 +2392,78 @@ get_shared_rep(representation_t **old_re > + /* The existing representation may itsel be part of the current Typo: "itsel". > + /* Compare the two representations. > + * Note that the stream comparison might also produce MD5 checksum > + * errors or other failures in case of SHA1 collisions. */ > + SVN_ERR(svn_fs_fs__get_contents_from_file(&contents, fs, rep, file, > + offset, scratch_pool)); > + SVN_ERR(svn_fs_fs__get_contents(&old_contents, fs, &old_rep_norm, > + FALSE, scratch_pool)); > + err = svn_stream_contents_same2(&same, contents, old_contents, > + scratch_pool); > + > + /* Restore FILE's read / write position. */ > + SVN_ERR(svn_io_file_seek(file, APR_SET, &old_position, scratch_pool)); Leaks 'err'. Cheers, Daniel