svn commit: r730176 - /lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/transformation/LuceneIndexTransformer2.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Tue Dec 30 08:50:03 2008
New Revision: 730176

URL: http://svn.apache.org/viewvc?rev=730176&view=rev
Log:
Recycle pipeline components to avoid dead chunks of memory.

Modified:
    lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/transformation/LuceneIndexTransformer2.java

Modified: lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/transformation/LuceneIndexTransformer2.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/transformation/LuceneIndexTransformer2.java?rev=730176&r1=730175&r2=730176&view=diff
==============================================================================
--- lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/transformation/LuceneIndexTransformer2.java (original)
+++ lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/transformation/LuceneIndexTransformer2.java Tue Dec 30 08:50:03 2008
@@ -261,9 +261,16 @@
     }
 
     public void recycle() {
+        super.recycle();
         this.index = null;
         this.indexer = null;
         this.processing = NO_PROCESSING;
+        this.request = null;
+        this.area = null;
+        this.uuid = null;
+        this.language = null;
+        this.attrs = null;
+        this.bodyDocument = null;
     }
 
     public void service(ServiceManager manager) throws ServiceException {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.