Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8D1711111C for ; Tue, 22 Apr 2014 18:57:17 +0000 (UTC) Received: (qmail 79255 invoked by uid 500); 22 Apr 2014 18:57:17 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 79208 invoked by uid 500); 22 Apr 2014 18:57:16 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 79201 invoked by uid 99); 22 Apr 2014 18:57:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Apr 2014 18:57:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Apr 2014 18:57:16 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 00C29238896F; Tue, 22 Apr 2014 18:56:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1589252 - /subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Date: Tue, 22 Apr 2014 18:56:52 -0000 To: commits@subversion.apache.org From: stefan2@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140422185653.00C29238896F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: stefan2 Date: Tue Apr 22 18:56:52 2014 New Revision: 1589252 URL: http://svn.apache.org/r1589252 Log: When taking out all locks on a FSFS repo, don't auto-create lock files that are not supported / used by the respective repo format. This is not strictly a correctness fix as the old formats will simply ignore / not access those lock files. However, we don't want to litter the repo with unsupported files. * subversion/libsvn_fs_fs/fs_fs.c (svn_fs_fs__with_all_locks): The txn-current-lock is not always available. Modified: subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Modified: subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c?rev=1589252&r1=1589251&r2=1589252&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c (original) +++ subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Tue Apr 22 18:56:52 2014 @@ -392,7 +392,8 @@ svn_fs_fs__with_all_locks(svn_fs_t *fs, if (ffd->format >= SVN_FS_FS__MIN_PACK_LOCK_FORMAT) lock_baton = chain_lock_baton(pack_lock, lock_baton); - lock_baton = chain_lock_baton(txn_lock, lock_baton); + if (ffd->format >= SVN_FS_FS__MIN_TXN_CURRENT_FORMAT) + lock_baton = chain_lock_baton(txn_lock, lock_baton); return svn_error_trace(with_lock(lock_baton, pool)); }