This closes #2235 Make JDBC OpenFile Thread Safe
This commit is contained in:
commit
3ac7b9aef6
|
@ -108,6 +108,7 @@ public class JDBCSequentialFileFactoryDriver extends AbstractJDBCDriver {
|
|||
* @throws SQLException
|
||||
*/
|
||||
public void openFile(JDBCSequentialFile file) throws SQLException {
|
||||
synchronized (connection) {
|
||||
final long fileId = fileExists(file);
|
||||
if (fileId < 0) {
|
||||
createFile(file);
|
||||
|
@ -116,6 +117,7 @@ public class JDBCSequentialFileFactoryDriver extends AbstractJDBCDriver {
|
|||
loadFile(file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void removeFile(JDBCSequentialFile file) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue