mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.0/Cloud)
87778: Merged V4.2-BUG-FIX (4.2.4) to HEAD-BUG-FIX (5.0/Cloud) 87770: MNT-12257 : Failed to verify license - Possible temporary problem Fixed code formatting. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@94553 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -389,19 +389,19 @@ public class DescriptorServiceImpl extends AbstractLifecycleBean
|
||||
{
|
||||
if (currentRepoDescriptor == null)
|
||||
{
|
||||
final RetryingTransactionHelper txnHelper = transactionService.getRetryingTransactionHelper();
|
||||
|
||||
RetryingTransactionCallback<Void> nopLoadLicense = new RetryingTransactionCallback<Void>()
|
||||
{
|
||||
@Override
|
||||
public Void execute()
|
||||
{
|
||||
currentRepoDescriptor = currentRepoDescriptorDAO.updateDescriptor(serverDescriptor, LicenseMode.UNKNOWN);
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
txnHelper.doInTransaction(nopLoadLicense, false, false);
|
||||
final RetryingTransactionHelper txnHelper = transactionService.getRetryingTransactionHelper();
|
||||
|
||||
RetryingTransactionCallback<Void> nopLoadLicense = new RetryingTransactionCallback<Void>()
|
||||
{
|
||||
@Override
|
||||
public Void execute()
|
||||
{
|
||||
currentRepoDescriptor = currentRepoDescriptorDAO.updateDescriptor(serverDescriptor, LicenseMode.UNKNOWN);
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
txnHelper.doInTransaction(nopLoadLicense, false, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -750,17 +750,17 @@ public class DescriptorServiceImpl extends AbstractLifecycleBean
|
||||
// Make sure that the repo descriptor is updated the first time
|
||||
if (currentRepoDescriptor == null)
|
||||
{
|
||||
final RetryingTransactionHelper txnHelper = transactionService.getRetryingTransactionHelper();
|
||||
RetryingTransactionCallback<Void> nopLoadLicense = new RetryingTransactionCallback<Void>()
|
||||
final RetryingTransactionHelper txnHelper = transactionService.getRetryingTransactionHelper();
|
||||
RetryingTransactionCallback<Void> nopLoadLicense = new RetryingTransactionCallback<Void>()
|
||||
{
|
||||
@Override
|
||||
public Void execute()
|
||||
{
|
||||
currentRepoDescriptor = currentRepoDescriptorDAO.updateDescriptor(serverDescriptor, LicenseMode.UNKNOWN);
|
||||
return null;
|
||||
}
|
||||
@Override
|
||||
public Void execute()
|
||||
{
|
||||
currentRepoDescriptor = currentRepoDescriptorDAO.updateDescriptor(serverDescriptor, LicenseMode.UNKNOWN);
|
||||
return null;
|
||||
}
|
||||
};
|
||||
txnHelper.setForceWritable(true);
|
||||
txnHelper.setForceWritable(true);
|
||||
txnHelper.doInTransaction(nopLoadLicense, false, false);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user