hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r546282 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/io/BytesWritable.java
Date Mon, 11 Jun 2007 20:58:58 GMT
Author: cutting
Date: Mon Jun 11 13:58:57 2007
New Revision: 546282

URL: http://svn.apache.org/viewvc?view=rev&rev=546282
Log:
HADOOP-1311.  Fix a bug in BytesWritable#set() where the start offset was ignored.  Contributed
by Dhruba.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/io/BytesWritable.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=546282&r1=546281&r2=546282
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Mon Jun 11 13:58:57 2007
@@ -96,6 +96,9 @@
  31. HADOOP-1336.  Re-enable speculative execution by
      default. (omalley via cutting)
 
+ 32. HADOOP-1311.  Fix a bug in BytesWritable#set() where start offset
+     was ignored.  (Dhruba Borthakur via cutting)
+
 
 Release 0.13.0 - 2007-06-08
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/io/BytesWritable.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/io/BytesWritable.java?view=diff&rev=546282&r1=546281&r2=546282
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/io/BytesWritable.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/io/BytesWritable.java Mon Jun 11 13:58:57
2007
@@ -122,7 +122,7 @@
   public void set(byte[] newData, int offset, int length) {
     setSize(0);
     setSize(length);
-    System.arraycopy(newData, 0, bytes, 0, size);
+    System.arraycopy(newData, offset, bytes, 0, size);
   }
 
   // inherit javadoc



Mime
View raw message