subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r1721732 - /subversion/trunk/subversion/mod_dav_svn/deadprops.c
Date Sat, 26 Dec 2015 14:03:43 GMT
Author: ivan
Date: Sat Dec 26 14:03:42 2015
New Revision: 1721732

URL: http://svn.apache.org/viewvc?rev=1721732&view=rev
Log:
mod_dav_svn: Improve performance and memory usage of PROPFIND with <allprop />
request processing.

* subversion/mod_dav_svn/deadprops.c
  (get_value): Obtain property value from DB->PROPS hash if exists.

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

Modified: subversion/trunk/subversion/mod_dav_svn/deadprops.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/mod_dav_svn/deadprops.c?rev=1721732&r1=1721731&r2=1721732&view=diff
==============================================================================
--- subversion/trunk/subversion/mod_dav_svn/deadprops.c (original)
+++ subversion/trunk/subversion/mod_dav_svn/deadprops.c Sat Dec 26 14:03:42 2015
@@ -110,7 +110,12 @@ get_value(dav_db *db, const dav_prop_nam
       return NULL;
     }
 
-  /* ### if db->props exists, then try in there first */
+  /* If db->props exists, then use it to obtain property value. */
+  if (db->props)
+    {
+      *pvalue = svn_hash_gets(db->props, propname);
+      return NULL;
+    }
 
   /* We've got three different types of properties (node, txn, and
      revision), and we've got two different protocol versions to deal



Mime
View raw message