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 67AFE10E5C for ; Thu, 23 Jan 2014 16:18:30 +0000 (UTC) Received: (qmail 38212 invoked by uid 500); 23 Jan 2014 16:18:29 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 38184 invoked by uid 500); 23 Jan 2014 16:18:29 -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 38173 invoked by uid 99); 23 Jan 2014 16:18:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jan 2014 16:18:29 +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; Thu, 23 Jan 2014 16:18:27 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1830F23888A6; Thu, 23 Jan 2014 16:18:06 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1560723 - /subversion/trunk/subversion/libsvn_fs_fs/hotcopy.c Date: Thu, 23 Jan 2014 16:18:06 -0000 To: commits@subversion.apache.org From: stefan2@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140123161806.1830F23888A6@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: stefan2 Date: Thu Jan 23 16:18:05 2014 New Revision: 1560723 URL: http://svn.apache.org/r1560723 Log: When hotcopying non-shared repositories, checkpoint the progress after every revision. This is not strictly necessary and adds a performance penalty but improves behavior if we re-run hotcopy after cancelling a previous one. * subversion/libsvn_fs_fs/hotcopy.c (hotcopy_body): Checkpoint "current" after each rev in nonshared reps and give a detailed rationale. Modified: subversion/trunk/subversion/libsvn_fs_fs/hotcopy.c Modified: subversion/trunk/subversion/libsvn_fs_fs/hotcopy.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/hotcopy.c?rev=1560723&r1=1560722&r2=1560723&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_fs_fs/hotcopy.c (original) +++ subversion/trunk/subversion/libsvn_fs_fs/hotcopy.c Thu Jan 23 16:18:05 2014 @@ -861,8 +861,15 @@ hotcopy_body(void *baton, apr_pool_t *po rev, max_files_per_dir, FALSE, iterpool)); - /* After completing a full shard, update 'current'. */ - if (max_files_per_dir && rev % max_files_per_dir == 0) + /* After completing a full shard, update 'current'. For non-shared + * repositories, update after every revision. + * + * This "checkpoints" the progress we made so far and prevents us from + * starting all over again if the hotcopy process got canceled. It is + * not _necessary_ to update "current" until the very end (see further + * below); it's a performance trade-off between different scenarios. + */ + if (!max_files_per_dir || rev % max_files_per_dir == 0) SVN_ERR(hotcopy_update_current(&dst_youngest, dst_fs, rev, iterpool)); } svn_pool_destroy(iterpool);