mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[DS-743] Fix out of memory exception with ItemImport
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5749 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -631,6 +631,7 @@ public class ItemImport
|
||||
{
|
||||
addItem(c, mycollections, sourceDir, dircontents[i], mapOut, template);
|
||||
System.out.println(i + " " + dircontents[i]);
|
||||
c.clearCache();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -696,6 +697,7 @@ public class ItemImport
|
||||
|
||||
deleteItem(c, oldItem);
|
||||
addItem(c, mycollections, sourceDir, newItemName, null, template);
|
||||
c.clearCache();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -726,6 +728,7 @@ public class ItemImport
|
||||
System.out.println("Deleting item " + itemID);
|
||||
deleteItem(c, myitem);
|
||||
}
|
||||
c.clearCache();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user