subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1154718 - /subversion/trunk/subversion/libsvn_ra_neon/fetch.c
Date Sun, 07 Aug 2011 16:25:49 GMT
Author: rhuijben
Date: Sun Aug  7 16:25:49 2011
New Revision: 1154718

URL: http://svn.apache.org/viewvc?rev=1154718&view=rev
Log:
Following up on r1154717, apply the same stream close in the non-bulk update
in ra_neon. (The bulk update already detected short delta streams)

* subversion/libsvn_ra_neon/fetch.c
  (simple_fetch_file): When parsing via a stream, close the stream.

Modified:
    subversion/trunk/subversion/libsvn_ra_neon/fetch.c

Modified: subversion/trunk/subversion/libsvn_ra_neon/fetch.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_neon/fetch.c?rev=1154718&r1=1154717&r2=1154718&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_neon/fetch.c (original)
+++ subversion/trunk/subversion/libsvn_ra_neon/fetch.c Sun Aug  7 16:25:49 2011
@@ -528,7 +528,10 @@ static svn_error_t *simple_fetch_file(sv
                              TRUE, pool));
 
   /* close the handler, since the file reading completed successfully. */
-  return (*frc.handler)(NULL, frc.handler_baton);
+  if (frc.stream)
+    return svn_stream_close(frc.stream);
+  else
+    return (*frc.handler)(NULL, frc.handler_baton);
 }
 
 /* Helper for svn_ra_neon__get_file.  This implements



Mime
View raw message