Author: sannegrinovero
Date: 2008-06-03 15:11:06 -0400 (Tue, 03 Jun 2008)
New Revision: 14728
Modified:
search/trunk/src/java/org/hibernate/search/util/FileHelper.java
Log:
forgot to remove System.out for "HSEARCH-205 Out of Memory on copy of large
indexes"
Modified: search/trunk/src/java/org/hibernate/search/util/FileHelper.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/util/FileHelper.java 2008-06-03 18:12:26
UTC (rev 14727)
+++ search/trunk/src/java/org/hibernate/search/util/FileHelper.java 2008-06-03 19:11:06
UTC (rev 14728)
@@ -76,7 +76,6 @@
private static void copyFile(File srcFile, File destFile, long chunkSize) throws
IOException {
FileInputStream is = null;
FileOutputStream os = null;
- long startTime = System.currentTimeMillis();
try {
is = new FileInputStream(srcFile);
FileChannel iChannel = is.getChannel();
@@ -99,8 +98,6 @@
if (is != null) is.close();
if (os != null) os.close();
}
- long endTime = System.currentTimeMillis() - startTime;
- System.out.println("copied in "+ endTime + " ms.");
boolean successTimestampOp = destFile.setLastModified( srcFile.lastModified() );
if ( ! successTimestampOp ) {
log.warn( "Could not change timestamp for " + destFile +