You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ar...@apache.org on 2010/10/03 15:06:41 UTC

svn commit: r1003958 - /subversion/trunk/subversion/svnrdump/dump_editor.c

Author: artagnon
Date: Sun Oct  3 13:06:40 2010
New Revision: 1003958

URL: http://svn.apache.org/viewvc?rev=1003958&view=rev
Log:
svnrdump: dump_editor: Don't use a named temporary file. It's more
expensive than using a random name for the temporary file.

* subversion/svnrdump/dump_editor.c
  (get_dump_editor): Use svn_io_open_unique_file3 to create and open
  the delta file instead of the more expensive
  svn_io_open_uniquely_named.

Suggested by: Bert

Modified:
    subversion/trunk/subversion/svnrdump/dump_editor.c

Modified: subversion/trunk/subversion/svnrdump/dump_editor.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnrdump/dump_editor.c?rev=1003958&r1=1003957&r2=1003958&view=diff
==============================================================================
--- subversion/trunk/subversion/svnrdump/dump_editor.c (original)
+++ subversion/trunk/subversion/svnrdump/dump_editor.c Sun Oct  3 13:06:40 2010
@@ -857,9 +857,8 @@ get_dump_editor(const svn_delta_editor_t
   /* Open a unique temporary file for all textdelta applications in
      this edit session. The file is automatically closed and cleaned
      up when the edit session is done. */
-  SVN_ERR(svn_io_open_uniquely_named(&(eb->delta_file), &(eb->delta_abspath),
-                                     NULL, "svnrdump", NULL,
-                                     svn_io_file_del_on_close, pool, pool));
+  SVN_ERR(svn_io_open_unique_file3(&(eb->delta_file), &(eb->delta_abspath),
+                                   NULL, svn_io_file_del_on_close, pool, pool));
 
   de = svn_delta_default_editor(pool);
   de->open_root = open_root;