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 31A2E1757C for ; Fri, 30 Oct 2015 00:20:44 +0000 (UTC) Received: (qmail 18574 invoked by uid 500); 30 Oct 2015 00:20:44 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 18532 invoked by uid 500); 30 Oct 2015 00:20:44 -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 18522 invoked by uid 99); 30 Oct 2015 00:20:44 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2015 00:20:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 902B3C0EBE for ; Fri, 30 Oct 2015 00:20:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.99 X-Spam-Level: X-Spam-Status: No, score=0.99 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Dvzbj3Q9hicD for ; Fri, 30 Oct 2015 00:20:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id C831B20751 for ; Fri, 30 Oct 2015 00:20:42 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 91FB5E0451 for ; Fri, 30 Oct 2015 00:20:41 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 6C4F13A0018 for ; Fri, 30 Oct 2015 00:20:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1711390 - /subversion/trunk/subversion/libsvn_fs_x/fs_x.c Date: Fri, 30 Oct 2015 00:20:41 -0000 To: commits@subversion.apache.org From: stefan2@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20151030002041.6C4F13A0018@svn01-us-west.apache.org> Author: stefan2 Date: Fri Oct 30 00:20:41 2015 New Revision: 1711390 URL: http://svn.apache.org/viewvc?rev=1711390&view=rev Log: Eliminate yet another fsync call from the FSX repository creation sequence. * subversion/libsvn_fs_x/fs_x.c (svn_fs_x__create_file_tree): Create the rather trivial 'current' file just like we create the 'min-unpacked-rev' file. Modified: subversion/trunk/subversion/libsvn_fs_x/fs_x.c Modified: subversion/trunk/subversion/libsvn_fs_x/fs_x.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/fs_x.c?rev=1711390&r1=1711389&r2=1711390&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_fs_x/fs_x.c (original) +++ subversion/trunk/subversion/libsvn_fs_x/fs_x.c Fri Oct 30 00:20:41 2015 @@ -967,9 +967,8 @@ svn_fs_x__create_file_tree(svn_fs_t *fs, scratch_pool)); /* Create the 'current' file. */ - SVN_ERR(svn_io_file_create_empty(svn_fs_x__path_current(fs, scratch_pool), - scratch_pool)); - SVN_ERR(svn_fs_x__write_current(fs, 0, scratch_pool)); + SVN_ERR(svn_io_file_create(svn_fs_x__path_current(fs, scratch_pool), + "0\n", scratch_pool)); /* Create the 'uuid' file. */ SVN_ERR(svn_io_file_create_empty(svn_fs_x__path_lock(fs, scratch_pool),