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:
Mark Rogers
2013-09-17 11:03:00 +00:00
parent b462722b88
commit 500f6487d3
2 changed files with 173 additions and 108 deletions

View File

@@ -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