mirror of https://github.com/apache/cassandra
s/w/rw/
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:
parent
e7edf4a323
commit
ff2dce5bbf
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue