You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by iv...@apache.org on 2015/12/26 15:03:43 UTC
svn commit: r1721732 - /subversion/trunk/subversion/mod_dav_svn/deadprops.c
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