ACTIVEMQ6-102 - fix check for scaledown when creating journal loader
https://issues.apache.org/jira/browse/ACTIVEMQ6-102
This commit is contained in:
parent
18c9e790f6
commit
60906e3754
|
@ -339,7 +339,7 @@ public final class SharedNothingBackupActivation extends Activation
|
|||
@Override
|
||||
public JournalLoader createJournalLoader(PostOffice postOffice, PagingManager pagingManager, StorageManager storageManager, QueueFactory queueFactory, NodeManager nodeManager, ManagementService managementService, GroupingHandler groupingHandler, Configuration configuration, ActiveMQServer parentServer) throws ActiveMQException
|
||||
{
|
||||
if (replicaPolicy.getScaleDownPolicy() != null)
|
||||
if (replicaPolicy.getScaleDownPolicy() != null && replicaPolicy.getScaleDownPolicy().isEnabled())
|
||||
{
|
||||
return new BackupRecoveryJournalLoader(postOffice,
|
||||
pagingManager,
|
||||
|
|
|
@ -194,7 +194,7 @@ public final class SharedStoreBackupActivation extends Activation
|
|||
@Override
|
||||
public JournalLoader createJournalLoader(PostOffice postOffice, PagingManager pagingManager, StorageManager storageManager, QueueFactory queueFactory, NodeManager nodeManager, ManagementService managementService, GroupingHandler groupingHandler, Configuration configuration, ActiveMQServer parentServer) throws ActiveMQException
|
||||
{
|
||||
if (sharedStoreSlavePolicy.getScaleDownPolicy() != null)
|
||||
if (sharedStoreSlavePolicy.getScaleDownPolicy() != null && sharedStoreSlavePolicy.getScaleDownPolicy().isEnabled())
|
||||
{
|
||||
return new BackupRecoveryJournalLoader(postOffice,
|
||||
pagingManager,
|
||||
|
|
Loading…
Reference in New Issue