You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ko...@apache.org on 2021/02/23 18:47:44 UTC

svn commit: r1886855 - /subversion/trunk/subversion/libsvn_wc/working_file_writer.c

Author: kotkov
Date: Tue Feb 23 18:47:44 2021
New Revision: 1886855

URL: http://svn.apache.org/viewvc?rev=1886855&view=rev
Log:
* subversion/libsvn_wc/working_file_writer.c
  (svn_wc__working_file_writer_install): Kill the pool cleanup handler after
   installing the stream — no reason to keep the handler in the cleanup list
   when it's no-op.

Modified:
    subversion/trunk/subversion/libsvn_wc/working_file_writer.c

Modified: subversion/trunk/subversion/libsvn_wc/working_file_writer.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/working_file_writer.c?rev=1886855&r1=1886854&r2=1886855&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/working_file_writer.c (original)
+++ subversion/trunk/subversion/libsvn_wc/working_file_writer.c Tue Feb 23 18:47:44 2021
@@ -151,6 +151,7 @@ svn_wc__working_file_writer_install(svn_
       SVN_ERR(svn_stream__install_stream(writer->install_stream, temp_path,
                                          TRUE, scratch_pool));
       writer->install_stream = NULL;
+      apr_pool_cleanup_kill(writer->pool, writer, cleanup_file_writer);
 
       /* When this stream is closed, the resulting special file will
          atomically be created/moved into place at LOCAL_ABSPATH. */
@@ -173,6 +174,7 @@ svn_wc__working_file_writer_install(svn_
                                          target_abspath, TRUE,
                                          scratch_pool));
       writer->install_stream = NULL;
+      apr_pool_cleanup_kill(writer->pool, writer, cleanup_file_writer);
     }
 
   return SVN_NO_ERROR;