hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1368964 - /hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
Date Fri, 03 Aug 2012 14:02:03 GMT
Author: tedyu
Date: Fri Aug  3 14:02:03 2012
New Revision: 1368964

URL: http://svn.apache.org/viewvc?rev=1368964&view=rev
Log:
HBASE-6359 KeyValue may return incorrect values after readFields() (Dave Revell)


Modified:
    hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java

Modified: hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java?rev=1368964&r1=1368963&r2=1368964&view=diff
==============================================================================
--- hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java (original)
+++ hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java Fri Aug 
3 14:02:03 2012
@@ -2562,6 +2562,8 @@ public class KeyValue implements Writabl
     this.rowCache = null;
     this.length = length;
     this.offset = 0;
+    this.timestampCache = -1;
+    this.keyLength = 0;
     this.bytes = new byte[this.length];
     in.readFully(this.bytes, 0, this.length);
   }



Mime
View raw message