You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2010/09/27 13:46:52 UTC

svn commit: r1001680 - /lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/store/FSDirectory.java

Author: shaie
Date: Mon Sep 27 11:46:51 2010
New Revision: 1001680

URL: http://svn.apache.org/viewvc?rev=1001680&view=rev
Log:
removed unused CHANNEL_CHUNK_SIZE after FileChannel code was removed

Modified:
    lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/store/FSDirectory.java

Modified: lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/store/FSDirectory.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/store/FSDirectory.java?rev=1001680&r1=1001679&r2=1001680&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/store/FSDirectory.java (original)
+++ lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/store/FSDirectory.java Mon Sep 27 11:46:51 2010
@@ -134,12 +134,6 @@ public abstract class FSDirectory extend
   protected final Set<String> staleFiles = synchronizedSet(new HashSet<String>()); // Files written, but not yet sync'ed
   private int chunkSize = DEFAULT_READ_CHUNK_SIZE; // LUCENE-1566
 
-  /**
-   * Chunk size used to read when using FileChannel API. If an attempt to read a
-   * large file is made without limiting the chunk size, an OOM may occur.
-   */
-  private static final long CHANNEL_CHUNK_SIZE = 1 << 21; // Use 2MB chunk size - LUCENE-2537
-
   // returns the canonical version of the directory, creating it if it doesn't exist.
   private static File getCanonicalPath(File file) throws IOException {
     return new File(file.getCanonicalPath());