mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@669519 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1555260c6c
commit
1acfd0d607
|
@ -268,6 +268,8 @@ public class AsyncDataManager {
|
||||||
String fileName = filePrefix + nextNum;
|
String fileName = filePrefix + nextNum;
|
||||||
File file = new File(directory, fileName);
|
File file = new File(directory, fileName);
|
||||||
DataFile nextWriteFile = new DataFile(file, nextNum, preferedFileLength);
|
DataFile nextWriteFile = new DataFile(file, nextNum, preferedFileLength);
|
||||||
|
//actually allocate the disk space
|
||||||
|
nextWriteFile.closeRandomAccessFile(nextWriteFile.openRandomAccessFile(true));
|
||||||
fileMap.put(nextWriteFile.getDataFileId(), nextWriteFile);
|
fileMap.put(nextWriteFile.getDataFileId(), nextWriteFile);
|
||||||
fileByFileMap.put(file, nextWriteFile);
|
fileByFileMap.put(file, nextWriteFile);
|
||||||
if (currentWriteFile != null) {
|
if (currentWriteFile != null) {
|
||||||
|
|
Loading…
Reference in New Issue