Fix JDBCSequentialFileFactory build on 1.7
This commit is contained in:
parent
fc35f61287
commit
2ec6a6d45d
|
@ -81,7 +81,9 @@ public class JDBCSequentialFileFactory implements SequentialFileFactory, ActiveM
|
|||
@Override
|
||||
public SequentialFile createSequentialFile(String fileName) {
|
||||
try {
|
||||
fileLocks.putIfAbsent(fileName, new Object());
|
||||
if (fileLocks.get(fileName) == null) {
|
||||
fileLocks.put(fileName, new Object());
|
||||
}
|
||||
JDBCSequentialFile file = new JDBCSequentialFile(this, fileName, executor, dbDriver, fileLocks.get(fileName));
|
||||
files.add(file);
|
||||
return file;
|
||||
|
|
Loading…
Reference in New Issue