mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 23:13:10 +00:00
DS-2831 connections cleanup, context reuse (master)
This commit is contained in:
@@ -628,6 +628,8 @@ public class BitstreamResource extends Resource
|
||||
|
||||
log.trace("Deleting bitstream from all bundles.");
|
||||
bitstreamService.delete(context, dspaceBitstream);
|
||||
|
||||
context.complete();
|
||||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
|
@@ -518,6 +518,8 @@ public class CollectionsResource extends Resource
|
||||
|
||||
collectionService.delete(context, dspaceCollection);
|
||||
collectionService.update(context, dspaceCollection);
|
||||
|
||||
context.complete();
|
||||
}
|
||||
catch (ContextException e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user