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:
Gary Spencer
2006-02-23 14:03:52 +00:00
parent 6fac2e9b25
commit af933ac8bc

View File

@@ -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
if (m_notifyList != null && m_notifyList.numberOfRequests() > 0)