Skip to content

Instantly share code, notes, and snippets.

@tobert
Last active September 2, 2015 05:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobert/10c307cf3709a585a7cf to your computer and use it in GitHub Desktop.
Save tobert/10c307cf3709a585a7cf to your computer and use it in GitHub Desktop.
diff --git a/src/java/org/apache/cassandra/io/util/RandomAccessReader.java b/src/java/org/apache/cassandra/io/util/RandomAccessReader.java
index 95877a2..83c6d01 100644
--- a/src/java/org/apache/cassandra/io/util/RandomAccessReader.java
+++ b/src/java/org/apache/cassandra/io/util/RandomAccessReader.java
@@ -29,8 +29,8 @@ public class RandomAccessReader extends RandomAccessFile implements FileDataInpu
{
public static final long CACHE_FLUSH_INTERVAL_IN_BYTES = (long) Math.pow(2, 27); // 128mb
- // default buffer size, 64Kb
- public static final int DEFAULT_BUFFER_SIZE = 65536;
+ // default buffer size, 4Kb
+ public static final int DEFAULT_BUFFER_SIZE = 4096;
// absolute filesystem path to the file
private final String filePath;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment