hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r480282 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/record/compiler/JBuffer.java
Date Tue, 28 Nov 2006 23:35:17 GMT
Author: cutting
Date: Tue Nov 28 15:35:16 2006
New Revision: 480282

URL: http://svn.apache.org/viewvc?view=rev&rev=480282
Log:
HADOOP-747.  Fix record serialization to work correctly when records are included in Maps.
 Contributed by Milind.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/record/compiler/JBuffer.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=480282&r1=480281&r2=480282
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Tue Nov 28 15:35:16 2006
@@ -131,6 +131,9 @@
 38. HADOOP-749.  Fix a NullPointerException in jobfailures.jsp.
     (omalley via cutting)
 
+39. HADOOP-747.  Fix record serialization to work correctly when
+    records are embedded in Maps.  (Milind Bhandarkar via cutting)
+
 
 Release 0.8.0 - 2006-11-03
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/record/compiler/JBuffer.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/record/compiler/JBuffer.java?view=diff&rev=480282&r1=480281&r2=480282
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/record/compiler/JBuffer.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/record/compiler/JBuffer.java Tue Nov 28
15:35:16 2006
@@ -48,11 +48,11 @@
         if (decl) {
             ret = "    java.io.ByteArrayOutputStream "+fname+";\n";
         }
-        return ret + "        java.io.ByteArrayOutputStream "+fname+"=a_.readBuffer(\""+tag+"\");\n";
+        return ret + "        "+fname+"=a_.readBuffer(\""+tag+"\");\n";
     }
     
     public String genJavaWriteWrapper(String fname, String tag) {
-        return "        a_.writeBuffer("+fname+"\""+tag+"\");\n";
+        return "        a_.writeBuffer("+fname+",\""+tag+"\");\n";
     }
     
     public String genJavaCompareTo(String fname) {



Mime
View raw message