[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:
Graham Triggs
2010-11-05 22:28:34 +00:00
parent ac94a16211
commit 2950ed7f7a

View File

@@ -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();
}
}