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:
Gary Tully 2008-10-02 11:44:29 +00:00
parent 6dbd5d19cc
commit b22832e2d8
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ public class JDBCPersistenceAdapter extends DataSourceSupport implements Persist
}
public DatabaseLocker getDatabaseLocker() throws IOException {
if (databaseLocker == null) {
if (databaseLocker == null && isUseDatabaseLock()) {
databaseLocker = createDatabaseLocker();
}
return databaseLocker;