hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r927995 - in /hadoop/mapreduce/trunk: CHANGES.txt src/tools/org/apache/hadoop/fs/HarFileSystem.java
Date Fri, 26 Mar 2010 18:00:49 GMT
Author: mahadev
Date: Fri Mar 26 18:00:48 2010
New Revision: 927995

URL: http://svn.apache.org/viewvc?rev=927995&view=rev
Log:
MAPREDUCE-1629. Get rid of fakeBlockLocations() on HarFileSystem, since  it's not used (mahadev)

Modified:
    hadoop/mapreduce/trunk/CHANGES.txt
    hadoop/mapreduce/trunk/src/tools/org/apache/hadoop/fs/HarFileSystem.java

Modified: hadoop/mapreduce/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/CHANGES.txt?rev=927995&r1=927994&r2=927995&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/CHANGES.txt (original)
+++ hadoop/mapreduce/trunk/CHANGES.txt Fri Mar 26 18:00:48 2010
@@ -229,6 +229,9 @@ Trunk (unreleased changes)
     MAPREDUCE-1590. Move HarFileSystem from Hadoop Common to Mapreduce tools.
     (mahadev)
 
+    MAPREDUCE-1629. Get rid of fakeBlockLocations() on HarFileSystem, since
+    it's not used (mahadev)
+
   OPTIMIZATIONS
 
     MAPREDUCE-270. Fix the tasktracker to optionally send an out-of-band

Modified: hadoop/mapreduce/trunk/src/tools/org/apache/hadoop/fs/HarFileSystem.java
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/src/tools/org/apache/hadoop/fs/HarFileSystem.java?rev=927995&r1=927994&r2=927995&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/src/tools/org/apache/hadoop/fs/HarFileSystem.java (original)
+++ hadoop/mapreduce/trunk/src/tools/org/apache/hadoop/fs/HarFileSystem.java Fri Mar 26 18:00:48
2010
@@ -346,21 +346,6 @@ public class HarFileSystem extends Filte
   }
   
   /**
-   * fake the rawblocks since map reduce uses the block offsets to 
-   * fo some computations regarding the blocks
-   * @param rawBlocks the raw blocks returned by the filesystem
-   * @return faked blocks with changed offsets.
-   */
-  private BlockLocation[] fakeBlockLocations(BlockLocation[] rawBlocks, 
-		  long startIndex) {
-	for (BlockLocation block : rawBlocks) {
-		long rawOffset = block.getOffset();
-		block.setOffset(rawOffset - startIndex);
-	}
-	return rawBlocks;
-  }
-  
-  /**
    * the hash of the path p inside iniside
    * the filesystem
    * @param p the path in the harfilesystem



Mime
View raw message