subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1228653 - /subversion/trunk/subversion/libsvn_repos/dump.c
Date Sat, 07 Jan 2012 16:35:22 GMT
Author: hwright
Date: Sat Jan  7 16:35:21 2012
New Revision: 1228653

URL: http://svn.apache.org/viewvc?rev=1228653&view=rev
Log:
Don't double-close an editor.

* subversion/libsvn_repos/dump.c
  (svn_repos_dump_fs3): Only close the editor after svn_repos_replay2(), as
    other methods of dumping close the editor for us.

Modified:
    subversion/trunk/subversion/libsvn_repos/dump.c

Modified: subversion/trunk/subversion/libsvn_repos/dump.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/dump.c?rev=1228653&r1=1228652&r2=1228653&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/dump.c (original)
+++ subversion/trunk/subversion/libsvn_repos/dump.c Sat Jan  7 16:35:21 2012
@@ -1211,11 +1211,11 @@ svn_repos_dump_fs3(svn_repos_t *repos,
           SVN_ERR(svn_repos_replay2(to_root, "", SVN_INVALID_REVNUM, FALSE,
                                     dump_editor, dump_edit_baton,
                                     NULL, NULL, subpool));
-        }
 
-      /* While our editor close_edit implementation is a no-op, we still
-         do this for completeness. */
-      SVN_ERR(dump_editor->close_edit(dump_edit_baton, subpool));
+          /* While our editor close_edit implementation is a no-op, we still
+             do this for completeness. */
+          SVN_ERR(dump_editor->close_edit(dump_edit_baton, subpool));
+        }
 
     loop_end:
       if (notify_func)



Mime
View raw message