mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
MNT-9050 - When Alfresco is taken out of read-only mode CIFS writes no longer work without restarting fileservers
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55395 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -188,7 +188,26 @@ public class LegacyFileStateDriver implements ExtendedDiskInterface
|
||||
}
|
||||
throw ie;
|
||||
}
|
||||
// TODO what about other throwables ?
|
||||
catch (RuntimeException re)
|
||||
{
|
||||
// we could be out of memory or a NPE or some other unforseen situation. JLAN will complain loudly ... as it should.
|
||||
if(logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("create file exception caught", re);
|
||||
}
|
||||
if(tctx.hasStateCache() && token != null)
|
||||
{
|
||||
if(cache != null && fstate != null && token != null)
|
||||
{
|
||||
if(logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("create file release lock token:" + token);
|
||||
}
|
||||
cache.releaseFileAccess(fstate, token);
|
||||
}
|
||||
}
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user