AMQ-2052 another file name problem

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@730817 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Jencks 2009-01-02 19:06:55 +00:00
parent 78c002f568
commit 8a857bdc01
2 changed files with 4 additions and 3 deletions

View File

@ -28,8 +28,8 @@ import java.io.RandomAccessFile;
*/
class DataFile {
private File file;
private Integer number;
private final File file;
private final Integer number;
private int referenceCount;
private RandomAccessFile randomAcessFile;
private Object writerData;

View File

@ -31,6 +31,7 @@ import org.apache.activemq.kaha.StoreLocation;
import org.apache.activemq.kaha.impl.DataManager;
import org.apache.activemq.kaha.impl.index.RedoStoreIndexItem;
import org.apache.activemq.util.IOExceptionSupport;
import org.apache.activemq.util.IOHelper;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@ -65,7 +66,7 @@ public final class DataManagerImpl implements DataManager {
this.name = name;
this.storeSize=storeSize;
dataFilePrefix = NAME_PREFIX + name + "-";
dataFilePrefix = IOHelper.toFileSystemSafeName(NAME_PREFIX + name + "-");
// build up list of current dataFiles
File[] files = dir.listFiles(new FilenameFilter() {
public boolean accept(File dir, String n) {