mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
AVMLockingAwareService does not take out locks for operations on staging.
AVMLockingAwareService does not take out locks on Directories. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6072 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -821,8 +821,18 @@ public class AVMLockingAwareService implements AVMService, ApplicationContextAwa
|
||||
|
||||
private void grabLock(String path)
|
||||
{
|
||||
AVMNodeDescriptor desc = fService.lookup(-1, path, false);
|
||||
if (desc != null && desc.isDirectory())
|
||||
{
|
||||
return;
|
||||
}
|
||||
String[] storePath = splitPath(path);
|
||||
String webProject = getWebProject(storePath[0]);
|
||||
if (webProject != null && webProject.equals(storePath[0]))
|
||||
{
|
||||
// Don't do locking in staging.
|
||||
return;
|
||||
}
|
||||
if (webProject != null)
|
||||
{
|
||||
String userName = fAuthenticationService.getCurrentUserName();
|
||||
|
Reference in New Issue
Block a user