mirror of https://github.com/apache/activemq.git
fix AMQ-1956
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@701088 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6dbd5d19cc
commit
b22832e2d8
|
@ -264,7 +264,7 @@ public class JDBCPersistenceAdapter extends DataSourceSupport implements Persist
|
||||||
}
|
}
|
||||||
|
|
||||||
public DatabaseLocker getDatabaseLocker() throws IOException {
|
public DatabaseLocker getDatabaseLocker() throws IOException {
|
||||||
if (databaseLocker == null) {
|
if (databaseLocker == null && isUseDatabaseLock()) {
|
||||||
databaseLocker = createDatabaseLocker();
|
databaseLocker = createDatabaseLocker();
|
||||||
}
|
}
|
||||||
return databaseLocker;
|
return databaseLocker;
|
||||||
|
|
Loading…
Reference in New Issue