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 2010/02/02 16:29:50 UTC

svn commit: r905672 - /subversion/trunk/subversion/mod_dav_svn/mirror.c

Author: cmpilato
Date: Tue Feb  2 15:29:48 2010
New Revision: 905672

URL: http://svn.apache.org/viewvc?rev=905672&view=rev
Log:
* subversion/mod_dav_svn/mirror.c
  (dav_svn__proxy_request_fixup): Add the "transaction-y" HTTPv2
    resource URLs to the list of those not proxied even for read-only
    request types.

Modified:
    subversion/trunk/subversion/mod_dav_svn/mirror.c

Modified: subversion/trunk/subversion/mod_dav_svn/mirror.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/mod_dav_svn/mirror.c?rev=905672&r1=905671&r2=905672&view=diff
==============================================================================
--- subversion/trunk/subversion/mod_dav_svn/mirror.c (original)
+++ subversion/trunk/subversion/mod_dav_svn/mirror.c Tue Feb  2 15:29:48 2010
@@ -73,18 +73,21 @@
 
         /* These are read-only requests -- the kind we like to handle
            ourselves -- but we need to make sure they aren't aimed at
-           working resource URIs before trying to field them.  Why?
-           Because working resource URIs are modeled in Subversion
-           using uncommitted Subversion transactions -- stuff our copy
-           of the repository isn't guaranteed to have on hand. */
+           resources that only exist on the master server such as
+           working resource URIs or the HTTPv2 transaction root and
+           transaction tree resouces. */
         if (r->method_number == M_PROPFIND ||
             r->method_number == M_GET) {
-            seg = ap_strstr(r->unparsed_uri, root_dir);
-            if (seg && ap_strstr_c(seg,
-                                   apr_pstrcat(r->pool, special_uri,
-                                               "/wrk/", NULL))) {
-                seg += strlen(root_dir);
-                proxy_request_fixup(r, master_uri, seg);
+            if ((seg = ap_strstr(r->unparsed_uri, root_dir))) {
+                if (ap_strstr_c(seg, apr_pstrcat(r->pool, special_uri,
+                                                 "/wrk/", NULL))
+                    || ap_strstr_c(seg, apr_pstrcat(r->pool, special_uri,
+                                                    "/txn/", NULL))
+                    || ap_strstr_c(seg, apr_pstrcat(r->pool, special_uri,
+                                                    "/txr/", NULL))) {
+                    seg += strlen(root_dir);
+                    proxy_request_fixup(r, master_uri, seg);
+                }
             }
             return OK;
         }