Backported fix for JDBC master/slave from trunk to 4.1 branch for AMQ-1236

git-svn-id: https://svn.apache.org/repos/asf/activemq/branches/activemq-4.1@533725 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2007-04-30 12:41:11 +00:00
parent 16f7f2f9a2
commit fb72e6cc72
1 changed files with 2 additions and 4 deletions

View File

@ -56,10 +56,8 @@ public class DefaultDatabaseLocker implements DatabaseLocker {
while (true) {
try {
log.info("Attempting to acquire the exclusive lock to become the Master broker");
boolean answer = statement.execute();
if (answer) {
break;
}
statement.execute();
break;
}
catch (Exception e) {
if (stopping) {