hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1368967 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/KeyValue.java
Date Fri, 03 Aug 2012 14:05:35 GMT
Author: tedyu
Date: Fri Aug  3 14:05:35 2012
New Revision: 1368967

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


Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/KeyValue.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/KeyValue.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/KeyValue.java?rev=1368967&r1=1368966&r2=1368967&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/KeyValue.java (original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/KeyValue.java Fri Aug  3 14:05:35
2012
@@ -2251,6 +2251,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