mirror of https://github.com/apache/lucene.git
removed unused CHANNEL_CHUNK_SIZE after FileChannel code was removed
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1001684 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fa405589da
commit
35c9c34ee3
|
@ -134,12 +134,6 @@ public abstract class FSDirectory extends Directory {
|
|||
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());
|
||||
|
|
Loading…
Reference in New Issue