On the ra-svn-tuning branch:
* subversion/libsvn_ra_svn/marshal.c
(svn_ra_svn__write_data_log_changed_path): Correct / reduce the calculation
of the needed buffer size.
git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/ra-svn-tuning@1663413 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/subversion/libsvn_ra_svn/marshal.c b/subversion/libsvn_ra_svn/marshal.c
index c41e230..60f2e4c 100644
--- a/subversion/libsvn_ra_svn/marshal.c
+++ b/subversion/libsvn_ra_svn/marshal.c
@@ -2603,11 +2603,9 @@
+ path_len + SVN_INT64_BUFFER_SIZE
/* path */
+ 2 /* action */
- + 4 + copyfrom_len + 2 * SVN_INT64_BUFFER_SIZE
- /* list with copy-from info */
- + 2 /* list start */
- + flags_str->len /* longest flag names */
- + 4; /* close open lists*/
+ + 2 + copyfrom_len + 2 * SVN_INT64_BUFFER_SIZE
+ /* list start + copy-from info */
+ + flags_str->len; /* flags and closing lists */
/* If the remaining buffer is big enough and we've got all parts,
directly copy into the buffer. */