mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Cleanup active transactions for the CIFS session if it is abnormally terminated and there are open files. AR-452.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2480 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -436,6 +436,22 @@ public class SMBSrvSession extends SrvSession implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Commit, or rollback, any active user transaction
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// Commit or rollback the transaction
|
||||||
|
|
||||||
|
endTransaction();
|
||||||
|
}
|
||||||
|
catch ( Exception ex)
|
||||||
|
{
|
||||||
|
// Debug
|
||||||
|
|
||||||
|
if ( logger.isDebugEnabled())
|
||||||
|
logger.debug("Error committing transaction", ex);
|
||||||
|
}
|
||||||
|
|
||||||
// Check if there are active change notification requests
|
// Check if there are active change notification requests
|
||||||
|
|
||||||
if (m_notifyList != null && m_notifyList.numberOfRequests() > 0)
|
if (m_notifyList != null && m_notifyList.numberOfRequests() > 0)
|
||||||
|
Reference in New Issue
Block a user