You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by cm...@apache.org on 2011/05/06 19:27:03 UTC
svn commit: r1100292 - /subversion/trunk/subversion/libsvn_ra_serf/commit.c
Author: cmpilato
Date: Fri May 6 17:27:02 2011
New Revision: 1100292
URL: http://svn.apache.org/viewvc?rev=1100292&view=rev
Log:
Followup to r1100287, avoiding unnecessary work. Doh!
* subversion/libsvn_ra_serf/commit.c
(post_headers_iterator_callback): Don't even bother duping the
transaction name -- we care only to combine it with the stub URLs.
Modified:
subversion/trunk/subversion/libsvn_ra_serf/commit.c
Modified: subversion/trunk/subversion/libsvn_ra_serf/commit.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/commit.c?rev=1100292&r1=1100291&r2=1100292&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/commit.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/commit.c Fri May 6 17:27:02 2011
@@ -1231,7 +1231,6 @@ post_headers_iterator_callback(void *bat
post_response_ctx_t *prc = baton;
commit_context_t *prc_cc = prc->commit_ctx;
svn_ra_serf__session_t *sess = prc_cc->session;
- const char *txn_name;
/* If we provided a UUID to the POST request, we should get back
from the server an SVN_DAV_VTXN_NAME_HEADER header; otherwise we
@@ -1242,7 +1241,6 @@ post_headers_iterator_callback(void *bat
{
/* Build out txn and txn-root URLs using the txn name we're
given, and store the whole lot of it in the commit context. */
- txn_name = apr_pstrdup(prc_cc->pool, val);
prc_cc->txn_url =
svn_path_url_add_component2(sess->txn_stub, val, prc_cc->pool);
prc_cc->txn_root_url =
@@ -1253,7 +1251,6 @@ post_headers_iterator_callback(void *bat
{
/* Build out vtxn and vtxn-root URLs using the vtxn name we're
given, and store the whole lot of it in the commit context. */
- txn_name = apr_pstrdup(prc_cc->pool, val);
prc_cc->txn_url =
svn_path_url_add_component2(sess->vtxn_stub, val, prc_cc->pool);
prc_cc->txn_root_url =