You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by rf...@apache.org on 2008/03/11 21:34:11 UTC

svn commit: r636095 - /lenya/trunk/src/java/org/apache/lenya/cms/site/NodeSet.java

Author: rfrovarp
Date: Tue Mar 11 13:34:05 2008
New Revision: 636095

URL: http://svn.apache.org/viewvc?rev=636095&view=rev
Log:
getDocuments makes no guarantee about order of returned nodes in its API and sorting doesn't help the function any. Removed sorting due to huge performance hit. 44577

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/site/NodeSet.java

Modified: lenya/trunk/src/java/org/apache/lenya/cms/site/NodeSet.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/site/NodeSet.java?rev=636095&r1=636094&r2=636095&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/site/NodeSet.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/site/NodeSet.java Tue Mar 11 13:34:05 2008
@@ -195,7 +195,7 @@
      */
     public Document[] getDocuments() {
         List documents = new ArrayList();
-        for (NodeIterator i = ascending(); i.hasNext(); ) {
+        for (NodeIterator i = iterator(); i.hasNext(); ) {
             SiteNode node = i.next();
             String[] langs = node.getLanguages();
             for (int l = 0; l < langs.length; l++) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org