git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1068220 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2011-02-07 23:29:02 +00:00
parent e7edf4a323
commit ff2dce5bbf
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public class CacheWriter<K, V> implements ICompactionInfo
logger.debug("Saving {}", path);
File tmpFile = File.createTempFile(path.getName(), null, path.getParentFile());
BufferedRandomAccessFile out = new BufferedRandomAccessFile(tmpFile, "w", BufferedRandomAccessFile.DEFAULT_BUFFER_SIZE, true);
BufferedRandomAccessFile out = new BufferedRandomAccessFile(tmpFile, "rw", BufferedRandomAccessFile.DEFAULT_BUFFER_SIZE, true);
try
{
for (K key : keys)

View File

@ -63,7 +63,7 @@ public class BufferedRandomAccessFile extends RandomAccessFile implements FileDa
// or in directIO() method to the DEFAULT_DIRECT_BUFFER_SIZE
private long maxBufferSize;
// constant, used for caching purpose, -1 if file is open in "w" mode
// constant, used for caching purpose, -1 if file is open in "rw" mode
// otherwise this will hold cached file length
private final long fileLength;