Merge remote-tracking branch 'origin/master'

This commit is contained in:
zhangxin10 2015-11-13 19:46:55 +08:00
commit 052fa0fae6
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@ public class PersistenceThread extends Thread {
NameFileComparator sizeComparator = new NameFileComparator(); NameFileComparator sizeComparator = new NameFileComparator();
File[] dataFileList = sizeComparator.sort(parentDir.listFiles()); File[] dataFileList = sizeComparator.sort(parentDir.listFiles());
for (File file : dataFileList) { for (File file : dataFileList) {
if(file.getName().startsWith(".")){
continue;
}
if (MemoryRegister.instance().isRegister(file.getName())) { if (MemoryRegister.instance().isRegister(file.getName())) {
if (logger.isDebugEnabled()) if (logger.isDebugEnabled())
logger.debug("The file [{}] is being used by another thread ", file); logger.debug("The file [{}] is being used by another thread ", file);